SyntaxFix
Write A Post
Hire A Developer
Questions
Solution is:
while (dataGridView1.RowCount > 1) { dataGridView1.Rows.RemoveAt(0); }