how to clear gridview data using c#
Hi anirudhp,
To clear GridView assign null to the GridView datasource.
C#
GridView1.DataSource = null; GridView1.DataBind();
VB.Net
GridView1.DataSource = Nothing GridView1.DataBind()
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.