Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Please help me determine how to get the index of a datagridcomboboxcell (seleteditemindex).


C++
DataGridViewComboBoxCell^ cmbcell=gcnew DataGridViewComboBoxCell();
  Dg_ECU->Rows[rc]->Cells[VALUES]=cmbcell;


Thanks
sravanthi

[edit]Tags only - OriginalGriff[/edit]
[edit]Clarity - Yvan Rodrigues[/edit]
Posted
Updated 8-Jun-11 2:58am
v4

1 solution

The notes here[^] detail it thus : Unlike the ComboBox control, the DataGridViewComboBoxCell does not have SelectedIndex and SelectedValue properties. Instead, selecting a value from a drop-down list sets the cell Value property.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900