how to make clear data gridview in c# code example
Example 1: c# datagridview clear all rows
dataGridView1.Rows.Clear();
dataGridView1.Refresh();
Example 2: clear gridview data in c#
dataGridView1.Rows.Clear();
dataGridView1.Rows.Clear();
dataGridView1.Refresh();
dataGridView1.Rows.Clear();