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

No header in GridListControl

Thread ID:





19519 Sep 28,2004 12:06 PM UTC Sep 29,2004 05:18 AM UTC WinForms 2
Tags: GridControl
Raul Rosenthal
Asked On September 28, 2004 12:06 PM UTC

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 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

Raul Rosenthal
Replied On September 29, 2004 05:18 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon