GridListControl visible columns

How do you control visible columns in GridListControl cell of GroupGrid? Also, how do you hide column header of GridListControl in GroupingGrid?

1 Reply

AD Administrator Syncfusion Team November 21, 2006 05:42 AM UTC

Hi MG,

You can access the GridDropDownGridListControlCellRenderer and use the Renderer.ListControlPart.ShowColumnHeader property to customize the column header in a DropDown GridListControl. Andalso you can use the ListControlPart.Grid.Cols.Hidden collection to manage the visible column in a dropdown gridlistcontrol. Here is a code snippet to show this.

GridDropDownGridListControlCellRenderer cr = this.gridGroupingControl1.TableControl.CellRenderers[ "GridListControl"] as GridDropDownGridListControlCellRenderer;
if( cr != null)
{
cr.ListControlPart.ShowColumnHeader = false;
cr.ListControlPart.Grid.Cols.Hidden[2] = true;
}

Best Regards,
Haneef

Loader.
Up arrow icon