Closed IridiumWasTaken closed 8 months ago
DataGrid is editable. Implement INotifyPropertyChanged on your Person model.
INotifyPropertyChanged might need to be mentioned in the documentation. But control itself is editable.
Maybe you need to set DataGrid IsReadOnly="false"
I believe either mention INotifyPropertyChanged or don't mention that it is editable in the page about the DataGrid. Otherwise it is very confusing for beginners like me.
@IridiumWasTaken that's a general concept of Avalonia for any editable data that you should implement INPC. However it may be worth to mention IsReadOnly
property on that page. If you want to file a PR to add it, that's aprreciated.
The documentation for DataGrid states the example code given creates an editable DataGrid:
However, when following the example code given on that page
The DataGrid is not editable. In this case, the mention that it is editable should be removed.