clear datasource gridview 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();