Hi,
Here's my problem. I have a dataGridview and everytimes I refresh the date from the database, the top leftmost cell (which is a combobox) is always selected. I found a couples of suggestion while searching for a solution :
and
Even though those solution seems to work for many people, they don't work for me... any idea why? My DGV is bounded but the column aren't autogenerated, I do this myself.
Thanks
Here's my problem. I have a dataGridview and everytimes I refresh the date from the database, the top leftmost cell (which is a combobox) is always selected. I found a couples of suggestion while searching for a solution :
Code:
dataGridView1.ClearSelection();
Code:
foreach(DataGridViewRow row in dataGridView1.Rows)
{
dataFridView1.Rows[row.index].selected=false;
}
Thanks
Comment