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.

how to get rid of the header in a drop-down grid list control?

Thread ID:





4874 Jun 5,2003 02:32 PM Jun 5,2003 03:37 PM Windows Forms 1
Tags: GridControl
jacky chen
Asked On June 5, 2003 02:32 PM

i have a gridcontrol and some cells in it have drop-down grid list control, but i don't want the column headers to be displayed when the list drops down, how do i get rid of those headers thanks!

Administrator [Syncfusion]
Replied On June 5, 2003 03:37 PM

Since the same GridListControl is used for any cell that has the GridListControl celltype, you have to do this on a cell by cell basis (in general). One way is to catch the CurrentCellShowingdropDown event and set it there if the cell being dropped is a GridListControl.
private void grid_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer;
	if(cr != null)
	         cr.ListControlPart.ShowColumnHeader = false;


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.