Feb 3, 2004 #1 ARCITS Programmer Apr 4, 2002 99 GB Is there a method to 'clear' the datagrid in ASP.Net?
Feb 3, 2004 #2 checkai Programmer Jan 17, 2003 1,629 US will datagridName.Dispose() do this? DLC Upvote 0 Downvote
Feb 3, 2004 Thread starter #3 ARCITS Programmer Apr 4, 2002 99 GB No I'm afraid I already tried that and .dispose() seems to have no effect. Thanks Anyway Upvote 0 Downvote
Feb 3, 2004 #4 checkai Programmer Jan 17, 2003 1,629 US dgBU.DataSource = "" dgBU.DataBind() This will empty the values...it keeps the header though...could you use the visible attribute? dlc Upvote 0 Downvote
dgBU.DataSource = "" dgBU.DataBind() This will empty the values...it keeps the header though...could you use the visible attribute? dlc
Feb 3, 2004 #5 Rhys666 Programmer May 20, 2003 1,106 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. Upvote 0 Downvote
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.