Hiding columns in a GridDataBoundGrid

Hi,

I use a GridDataBoundGrid.
I added the column and now I need to hide several of them.

How do I do this?

Thanks

1 Reply

AD Administrator Syncfusion Team December 11, 2006 09:53 PM UTC

Hi Ronnie,

You can use something like in the code below to hide columns in a griddataboundgrid.

// to hide any single column in grid
this.gridDataBoundGrid1.Model.HideCols[1] = true;

// to hide more than one column
this.gridDataBoundGrid1.Model.HideCols.SetRange(1, 3, true);

Let us know if you have any other questions.
Thanks,
Rajagopal

Loader.
Up arrow icon