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

DropDownCombo list index

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.

1 Reply

AD Administrator Syncfusion Team 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);
	}
}

Loader.
Up arrow icon