how to make clear data rows count gridview in c# code example Example: clear gridview data in c# dataGridView1.Rows.Clear();