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

GridListControl CellType

Hi,

For CellType GridListControl, is there a way to control the columns displayed in the dropdown. I want to hide a couple of columns.

Thanks,
Alomgir

1 Reply

JJ Jisha Joy Syncfusion Team July 9, 2009 12:10 PM UTC

Hi Alomgir,

To hide a column in a DropDownListControl cell, you have to get at the embedded Grid that the GridListControl uses to manage things. Below is a code snippet:

GridDropDownGridListControlCellRenderer cr = (GridDropDownGridListControlCellRenderer) this.gridControl1.CellRenderers["GridListControl"];



cr.ListControlPart.Grid.Cols.Hidden[2] = true; //hide column 2....

Please let me know if this helps.

Regards,
Jisha

Loader.
Live Chat Icon For mobile
Up arrow icon