Saturday, December 22, 2012

How to Clear DataGridView in C# .net

      In somettimes the following Code
Shows Problem Clearing Data from datagridView


dataGridView1.Rows.Clear()

 Then The Code Below Will Be Helpfull Clearing Data from DataGridView in C#.Net


 ((DataTable)dataGridView1.DataSource).Rows.Clear();

No comments:

Post a Comment