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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.