Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CLEAR DATAGRID CONTENTS (ASP.NET)

Status
Not open for further replies.

ARCITS

Programmer
Apr 4, 2002
99
GB
Is there a method to 'clear' the datagrid in ASP.Net?
 
No I'm afraid I already tried that and .dispose() seems to have no effect.

Thanks Anyway
 
dgBU.DataSource = ""
dgBU.DataBind()

This will empty the values...it keeps the header though...could you use the visible attribute?

dlc
 
DataGrid.Columns.Clear();

Removes all System.Web.UI.WebControls.DataGridColumn derived column objects from the System.Web.UI.WebControls.DataGridColumnCollection

Rhys

Be careful that the light at the end of the tunnel isn't a train coming the other way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top