Making all columns visible in Delphi Grid
Posted on 2011-04-27
I'm trying to program a quick way to make all of the columns in a grid visible, rather than the user having to individually click each of the checkboxes in the ColumnsQuickCustomization drop down. I know this can be done by individually calling each of the columns, but I would like to find a way around this since many of the grids have quite a large number of columns--plus I would be able to drop it into any grid with relatively little coding. I was thinking something along the lines of:
if TcxGrid.ColumnProperty.Visible := False then TcxGrid.ColumnProperty.Visible := True;
Would this be possible, or am I going about this the wrong way?