CommunityToolkit/WindowsCommunityToolkit

DataGrid.SelectedItems as ObservableCollection

Open

#4,743 opened on Aug 29, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (1,403 forks)batch import
DataGrid :capital_abcd:feature request :mailbox_with_mail:help wanted

Repository metrics

Stars
 (5,708 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Describe the problem

Hi all, it would be nice to have an option to use DataGrid's SelectedItems in MVVM pattern also for setting selected items programatically, simillar to CollectionView in Xamarin. Now it is read only IList.

Describe the solution

Publish SelectedItems as ObservableCollection or some other type implementing some of observable patterns.

Alternatives

No response

Additional info

No response

Help us help you

No.

Contributor guide