Grouping with ListCollectionView?

Hello

Does SfDataGrid support ListCollectionView as a ItemsSource, and using GroupDescriptions on that CollectionView?

Thanks, Tom



2 Replies

TT Tomislav Tustonic July 20, 2021 11:49 PM UTC

And to answer my own question, it seems to work when I set AllowCollectionView="True" on grid.

Are there any disadvantages to using CollectionView as a ItemsSource?

Thanks, Tom



VS Vijayarasan Sivanandham Syncfusion Team July 21, 2021 09:49 AM UTC

Hi Tomislav Tustonic, 

Thank you for contacting Syncfusion Support. 

Yes. SfDataGrid support ListCollectionView as a ItemsSource. Sorting, filtering, grouping and summaries operation working as expected when binding ListCollectionView as Itemsource in SfDataGrid. we have prepared the sample for your reference.

Sample Link: https://www.syncfusion.com/downloads/support/forum/167446/ze/ListCollectionView-518508036 

Please let us know if you have any concerns in this. 
  
Regards, 
Vijayarasan S 


Loader.
Up arrow icon