Completed
Last Updated: 17 May 2022 15:09 by ADMIN
Release LIB 2022.2.523 (23 May 2022)
Martin Ivanov
Created on: 21 Apr 2022 13:05
Category: GridView
Type: Bug Report
0
GridView: Column with disabled resizing can still be resized when the previous resizable column gets hidden at runtime

The issue appears when you have two adjacent columns - one resizable on the left and one not-resizable (IsResizing=False) on the right. If you hide the left column (IsVisible=False), the resize handle of the right column is still there and it can be used to resize it. 

To work this around, you can remove the next column and add it again in the Columns collection, after you hide the previous column.

this.gridView.Columns[1].IsVisible ^= true;            
var nextColumn = this.gridView.Columns[2];
this.gridView.Columns.Remove(nextColumn);
this.gridView.Columns.Add(nextColumn);

0 comments