How to clear datatable in page load
DataTable dt=new DataTable(); dt.items.Clear(); dt.Rows.Clear();
Hi,
DataTable dt=new DataTable(); should be enough as the page is created from scratch each time it is requested. If you want to clear rows you could use https://msdn.microsoft.com/en-us/library/system.data.datatable.clear(v=vs.110).aspx
If you need further help we would need to understand which problem you are trying to fix (could ie be rather a viewstate issue for the control that is showing your data ?)