Setting the DataSource
property to null for the respective template in RadGridView
is a suitable approach for clearing the data loaded in the control. If the columns are automatically generated, setting the DataSource
property to null, will also clear the columns as well. However, it would be necessary to clear the Relations
collections if you have setup hierarchy. It is just necessary to call the Relations.Clear method.
I hope this information helps.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.