I want to reset or clear the ultragrid by default.
How do you clear the ultra grid,
I get an error saying you cannot remove a linkdataview from a layout collection
are you talking about remove this way.
ultraGridUutDetails.Layouts.Remove(
this.ultraGridUutDetails.DataSource);
what function you are using to remove the datasource?
How to get to the documentation on any control, or get to the help library, I remember installing the help library i think, i have to check the infragistic directory on my computer.
Hi Keith,
The grid displays the data that exists in it's data source. So if you want to clear the grid, you either have to set the DataSource to null, or remove all of the rows from the DataSource. There's no other way.
If you cannot remove the data from your DataSource, then you are going to have to set the DataSource to null and therefore lose state information like the selected rows, active rows, scroll position, etc.
You can use the Save/Load methods on the grid's DIsplayLayout to store band-level information like sorting and grouping and then restore it after you set the DataSource back.
Not really, when i set the the datasource to null, it removes my default grouping. at the moment I will probably come back to this item. I want to be able to clear the grid with out changing default settings of the grid i set in the designer.