Expand|Select|Wrap|Line Numbers
- DataGridViewComboBoxCell cmbControlTypes= new DataGridViewComboBoxCell();
- cmbControlTypes.DataSource = result.resultTable;
- cmbControlTypes.DisplayMember = "name";
- cmbControlTypes.ValueMember = "id";
when i access the item collection as follows.
Expand|Select|Wrap|Line Numbers
- cmbControlTypes.Value = cmbControlTypes.Items[0]
"InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index"
is there any solution for above problem?.