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.

DropDownCombo list index

Thread ID:

Created:

Updated:

Platform:

Replies:

20447 Oct 19,2004 06:20 AM Oct 19,2004 06:35 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 19, 2004 06:20 AM

Is there any way to get to the selected index of a DropDownCombo cell type? I have a grid with two columns of DropDownCombo cell types. Each cell uses the same choice list. I need to determine the index of each cell.

Administrator [Syncfusion]
Replied On October 19, 2004 06:35 AM

You could handle CurrentCellCloseDropDown and get the index from that list at that point.
private void gridControl1_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e)
{
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
	if(cr != null)
	{
		Console.WriteLine(cr.ListBoxPart.SelectedIndex);
	}
}

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.

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.

;