Retrieving selected values of dataGridViewComboBoxColumn
I have a dataGridView (dgv) with a databound dataGridViewComboBoxColumn (dgvCbCol). After making the selections on the dgvCbCol, I save the selected values to the database and close the form. When I reopen the form, I would like to see the dgvCbCol restore all the selections I have made. How do I do that? Thanks.
joakim wireenPosted Apr 7, 2009, 4:07 AM
{
//db connection
while (reader.read())
{
//I named the columcombobox Colum1
Column1.Items.Add(reader.GetString("City");
}
}