Hi :)
I have a form which contains a datagridview.. when the form is hidding (i use hide, not close), i what to clear the datagridview, i've tried dgv.rows.clear() but it doesn't work :(
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shankar MPosted Apr 25, 2013, 12:36 AM
Shankar MPosted Apr 25, 2013, 12:36 AM
waqas memonPosted Apr 24, 2013, 2:46 PM
Anurag SarkarPosted Apr 23, 2013, 7:40 AM
VulpesPosted Apr 23, 2013, 6:24 AM
dgv.DataSource = null;
dgv.Refresh();
Satyapriya NayakPosted Apr 23, 2013, 6:13 AM
{
dataGridView1.Rows.RemoveAt(i);
i--;
while (dataGridView1.Rows.Count == 0)
continue;
}