Hi Ryan,
The grid does not track ''the selected index''. The only thing its knows is the cell value. The selected index is only around when the dropdown is visible.
You can use the code below in the TableControlCurrentCellCloseDropDown/TableControlCurrentCellShowedDropDown to get at the selected index.
void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer;
if (cr != null)
{
Console.WriteLine(cr.ListBoxPart.SelectedIndex);
}
}
But when there is no combobox dropped or about to be dropped or closed, then there is no selectedindex available.
Let us know if you need any further information.
Regards,
Rajagopal