Clear rows only datagridview

Satyapriyanayak
Posted by Satyapriyanayak under C# category on | Points: 40 | Views : 777
for (int i = 0; i < dataGridView1.Rows.Count - 1; i++)
{
dataGridView1.Rows.RemoveAt(i);
i--;
while (dataGridView1.Rows.Count == 0)
continue;
}

Comments or Responses

Login to post response