Live Chat Icon For mobile
Live Chat Icon

How to clear a DataGrid

Platform: ASP.NET| Category: DataGrid

VB.NET


DataGrid1.DataSource = Nothing 
DataGrid1.DataBind()

C#


DataGrid1.DataSource = null;
DataGrid1.DataBind();

Share with

Share on twitter
Share on facebook
Share on linkedin