Hidden col

I made a procedure that reorganize column order. However i experience some problems with the Hidden cols. It looks like _grid.Cols.Hidden["colA"]=true; has no effect... I use grid v2.0.5.1

1 Reply

AD Administrator Syncfusion Team March 29, 2005 01:18 PM UTC

If _grid is a GridControl, this will not work as this control does not track column names. You would have to write a method, NameToColIndex, that accepts a string and loops through grid[0, colIndex].Text looking for this string, returning colIndex when it found it. You could then use colIndex as an index to set the Hidden property. If it is a GridDataBoundGrid, then it should work.

Loader.
Up arrow icon