Open timunie opened 2 years ago
I think the post to fix the DataGrid is better to replace it with https://github.com/wieslawsoltes/DataBox
Are suggesting to pull the DataBox into Avalonia? Or do you want me to switch in my App to the DataBox Control?
Are suggesting to pull the DataBox into Avalonia? Or do you want me to switch in my App to the DataBox Control?
first
@wieslawsoltes @danwalmsley what do you think about it?
I suggest not investing your time in DataGrid and using TreeDataGrid. Sooner or later we will replace DataGrid with TreeDataGrid. Also as i remember it supports SelectionModel
Hi @Takoooooo , I prefer DataBox to TreeDataGrid, because TreeDataGrid column customization is just by code.
I don't think TreeDataGrid has the same level of functionality and likely never will. So I still vote for keeping the DataGrid current and even porting WPF's version over eventually. That said, adding selection model to the existing DataGrid code probably is not a simple task -- if it's doable though, great.
Is your feature request related to a problem? Please describe. ListBox has a great selection model which is way better than on WPF. The DataGrid is missing this. A discussion on telegram showed that this feature should be implemented.
Describe the solution you'd like Implement SelectionModel
Describe alternatives you've considered Use Behavior, Events or an AttachedProperty
Additional context If I manage to implement, I'll provide a PR.