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

DropDownCombo list index

Thread ID:

Created:

Updated:

Platform:

Replies:

20447 Oct 19,2004 10:20 AM UTC Oct 19,2004 10:35 AM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 19, 2004 10:20 AM UTC

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 10:35 AM UTC

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.

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

;