I load some data into a datagridview, I use a loop to do that.
When I need to load new data I get rid of old data like so...
foreach (DataGridViewRow row in dataGridView1.Rows)
{
dataGridView1.Rows.Remove(row); ;
}
Now I try to add new rows, because new data might different number of rows and columns, but the control does not show as if it's just gone.
Does anyone know what I might be doing wrong?