InterviewSolution
How to Clear or BLANK the GRIDVIEW data?Below are the DIFFERENT METHODS to clear or blank Gridview with very less line of CODE(1)First MethodGridView1.DataSource = null;GridView1.DataBind();(2)Second MethodGridView1.Rows.Clear();GridView1.Refresh();(3)Third MethoddataGridView1.Rows.Clear() dataGridView1.DataBind();(4)Fourth MethoddataGridView.DataSource=null;dataGridView.Rows.Clear();
Your experience on this site will be improved by allowing cookies. Read Cookie Policy