Hi all, good morning.
I'm working on grids improvements and we want to change our TDataGrids to XamDataGrids. Can I do a binding to CollectionViewSource in XamDataGrid? I've tried but I cannot achieve this.
The binding in TDataGris is done like this, I'd like to use the same collection in XamDataGrid:
ItemsSource="{Binding Path=MyCollectionViewSource.View}"
Moreover, I will appreciate all your recommendations about this migration.
Thanks in advance!
Regards.
Mariano.
Hello Mariano,
Thank you for your post!
I have been looking into it. Currently the XamDataGrid supports CollectionView and the View of the CollectionViewSource is of type ICollectionView ( https://msdn.microsoft.com/en-us/library/system.windows.data.collectionviewsource.view(v=vs.110).aspx) .
Having this in mind - you should be able to use the same binding for the XamDataGrid too. Please note that instead of ItemsSource you should use the DataSource of the XamDataGrid.
More about the XamDataGrid and the CollectionView you can find on the following link from our documentation: http://help.infragistics.com/doc/WPF/2015.2/CLR4.0/?page=xamDataGrid_External_Filtering_Copy.html.
Please do not hesitate to let me know if you have any further questions on this matter.