Hello,
If I add a new column to the data source of a Xamgrid that has previously been saved with 5 columns, the new 6th column will never appear when loading the previous persistence settings. Is there any way to have new columns automatically added when older persistence settings are loaded? The new column is not even able to select in the Column Choose with the old persistence settings loaded.
Another question - is it possible to access a list of every element the grid is being filtered by?
Thanks in advance.
Hello Corey,
About your first question - the persistence framework applies the settings, which you have specified. There is no way to apply the old settings and preserve the current state of the control.
An option is to apply the settings and then add a new column.
About your second question about the list of filtered items – you can use the xamGrid.Rows collection to get the filtered items. Have in mind that if the xamGrid control has its paging enabled you have to disabled it to get the correct filtered data. More information on how to disable paging you can get from here: http://ko.infragistics.com/community/forums/t/51363.aspx.
I’ve attached a sample about filtered data for your reference.