How to Clear GridView
-
Hi Friends, For some purpose i need to clear gridview ( remove all row) before i re bind the gridview. But i cant find how to clear it.Please Help. Thanks in Advance , Best Regards,
Prya
-
Hi Friends, For some purpose i need to clear gridview ( remove all row) before i re bind the gridview. But i cant find how to clear it.Please Help. Thanks in Advance , Best Regards,
Prya
GridView.DataSource = null; GridView.DataBind(); There may also be other ways.
modified on Tuesday, February 2, 2010 7:03 AM
-
Hi Friends, For some purpose i need to clear gridview ( remove all row) before i re bind the gridview. But i cant find how to clear it.Please Help. Thanks in Advance , Best Regards,
Prya
Hey Prya, There is no need to clear the GridView before you bind, because GridView normally does clearing. I think you are using DataSet as DataSource of the GridView which is to be cleared.
Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group
-
GridView.DataSource = null; GridView.DataBind(); There may also be other ways.
modified on Tuesday, February 2, 2010 7:03 AM
Hi Sebastien, Thanks a lot. Its working. Regards,
Prya