Hi,
Set the DataSource property of the DataGridViewComboBoxColumn to a data source that contains all the classes, e.g.a DataTable or a List<T>. You also need to set the ValueMember and DisplayMember properties of the combobox column.
Or, just addthe classesto the Items collection of the combobox column.
> Now my problem is that when the form reloads again i want that the selected value should be displayed into that combo box column .
If the DataGridView is data bound, set the value in the underlying data source properly; otherwise, set the Value of the combobox cell directly.
Hope this helps.
Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.