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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

4874 Jun 5,2003 06:32 PM UTC Jun 5,2003 07:37 PM UTC WinForms 1
loading
Tags: GridControl
jacky chen
Asked On June 5, 2003 06:32 PM UTC

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 07:37 PM UTC

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

CONFIRMATION

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.

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

;