OK, I have some problem
I must associate ItemsSource with object of type IEnumerable (not generic) since I don't know the type of object at run-time
First I dynamically create columns of type TextColumn with specific keys
Then, since I couldn't bind to IEnumerable, I am setting it in code behind like this:
grid.ItemsSource = DataCollection;
- this works, grid populated fine
However, afterwards the application needs to change both columns and itemssource
1. I set ItemsSource to null
2. Delete all previous columns
3. Try to create new columns - exception here with this stacktrace
at Infragistics.Controls.Grids.XamGridRowsManager.InvalidateGroupBy(Boolean reset) at Infragistics.Controls.Grids.RowsManager.InvalidateData() at Infragistics.Controls.Grids.RowsManagerBase.OnColumnLayoutPropertyChanged(ColumnLayout layout, String propertyName) at Infragistics.Controls.Grids.RowsManager.OnColumnLayoutPropertyChanged(ColumnLayout layout, String propertyName) at Infragistics.Controls.Grids.XamGridRowsManager.OnColumnLayoutPropertyChanged(ColumnLayout layout, String propertyName) at Infragistics.Controls.Grids.RowsManagerBase.OnColumnLayoutPropertyChanged(Object sender, PropertyChangedEventArgs e) at Infragistics.DependencyObjectNotifier.OnPropertyChanged(String propertyName) at Infragistics.Controls.Grids.ColumnLayout.InvalidateData() at Infragistics.Controls.Grids.ColumnLayout.OnColumnAdded(ColumnBase columnBase) at Infragistics.Controls.Grids.ColumnBaseCollection.AddItem(Int32 index, ColumnBase item) at Infragistics.Collections.CollectionBase`1.Add(T item)
I am having doubts if this manual set of ItemsSource is remembering only the first actual assignment of data;
Please give me any hint
OK, I am sorry, it was my mistake
Please ignore the post...