Hello,
I try to clear the rows of my UltraWinGrid control without lose the design (column headers, column sizes, ...), but I don't find the correct property.
I've already tried grid.Datasource = null; but this delete the design too...
Could you help me please ?
If you clear the rows, your data source items will be deleted too, so in order to clear the grid rows, delete the data source items.
If you don't want to do that, Use a bindingsource and set the object type as a data source:
binding:
BindngSource bs = new BindingSource();
bs.DataSource = MyList;
grid.DataSource = bs;
Deleting rows:
bs.DataSource = typeof(MyDataItem);
Thank you for your help ^^
Here are some other posts that may be of use:
http://community.infragistics.com/forums/p/13138/135503.aspx#135503
http://community.infragistics.com/forums/p/38015/220244.aspx#220244
They talk about clearing the rows but using different types of datasources.