i'm using the Community Toolkit datagrid within a WINUI 3 application. I can set a column's "IsReadOnly" property and make that column uneditable. But what i'd like to do is set the entire datagrid as read only, then a user selects a row, clicks on an edit button and only that row becomes editable. As far as i can tell, that isn't possible. Or i'm an idiot. Either is possible.
I can't seem to find any online material that says it's even possible. Column readonly sure, but not row.
One way to do this is by creating a readonly flag:
Person.cs
MainPageViewModel.cs
then you can:
MainPage.xaml.cs
MainPage.xaml
NOTE: I'm using the CommunityToolkit.Mvvm NuGet package.