We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon