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

No header in GridListControl

Is it possibile to hide the headers in the dropdown list when a GridListControl CellType is used? TIA. Raul Rosenthal

2 Replies

AD Administrator Syncfusion Team September 28, 2004 12:50 PM UTC

After the grid has been initialized and populated, you can try code like: Dim cr As GridDropDownGridListControlCellRenderer = gridControl1.CellRenderers("GridListControl") cr.ListControlPart.ShowColumnHeader = False If you get a null reference exception when you try this, it means the renders have not been created yet. If you trouble finding a spot to put the code, then you can always handle the CurrentCellShowingDropDown event and set things there.
Dim cc As GridCurrentCell = Me.gridControl1.CurrentCell
If Me.gridControl1(cc.RowIndex, cc.ColIndex).CellType = "GridListControl" Then
         Dim cr As GridDropDownGridListControlCellRenderer = cc.Renderer
         cr.ListControlPart.ShowColumnHeader = False
End If


RR Raul Rosenthal September 29, 2004 05:18 AM UTC

Fine! Thank you.

Loader.
Up arrow icon