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.
Unfortunately, activation email could not send to your email. Please try again.

No header in GridListControl

Thread ID:





19519 Sep 28,2004 08:06 AM Sep 29,2004 01:18 AM Windows Forms 2
Tags: GridControl
Raul Rosenthal
Asked On September 28, 2004 08:06 AM

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

Administrator [Syncfusion]
Replied On September 28, 2004 08:50 AM

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

Raul Rosenthal
Replied On September 29, 2004 01:18 AM

Fine! Thank you.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.