i have a datagrid view and it have a datagrid view combo box in it. i use the below code to load data to the datagrid view combo box.
DataGridViewComboBoxColumn comboBox = (DataGridViewComboBoxColumn)dgvAction.Rows[i].Cells.OwningColumn; comboBox.Items.Clear(); comboBox.Items.AddRange(m.LoadUSEmp());
what i want is how can i display the first value in the datagridview combo box when the form load.
is there somthing like comboboc.selectedindex = 0 or something
i tried i but there is no method in it.