DataGridViewRow dgvRow = new DataGridViewRow();
DataGridViewTextBoxCell GradeID = new DataGridViewTextBoxCell();
GradeID.Value = mLub.GradeID;
iCount = iCount + 1;
DataGridViewTextBoxCell GradeName = new DataGridViewTextBoxCell();
GradeName.Value = mLub.GradeName;
// Combox box
DataGridViewComboBoxCell cmbLubOilSystemID = new DataGridViewComboBoxCell();
cmbLubOilSystemID.DataSource = olist;
cmbLubOilSystemID.ValueMember = "LubOilSystemID";
cmbLubOilSystemID.DisplayMember = "LubOilSystemName";
dgvRow.Cells.Add(GradeID);
dgvRow.Cells.Add(GradeName);
dgvRow.Cells.Add(cmbLubOilSystemID);
//Add to grid. set values.
dgvLubOilGrades.Rows.Add(dgvRow);
In the above code i am binding combobox from list.
I want to dynamically select value of combox
Thanks n Regards
Bhupendra Tiwari