Open jwl4 opened 3 months ago
I feel like AutoGenerateColumns may be the issue here.
You are correct, @timunie. When the columns are defined using
AutoGenerateColumns seems like a great shortcut, but I'm finding that it probably won't give enough control of layout for the kinds of DataGrids I'm using.
Thank you for your response, it was helpful!
Describe the bug
If a DataGrid.ItemsSource property is assigned in a LostFocus event, clicking an item in the DataGrid will throw ArgumentOutOfRangeException
To Reproduce
Expected behavior
Maybe the DataGrid ought to process the changes in ItemsSource before passing the MouseDown to the DataGridCell?
Avalonia version
11.0.11
OS
Linux
Additional context
I tried using ObservableCollection instead of List, per the example at , but that gave the same exception.
I was attempting to parse a date in a textbox LostFocus event, then update the DataGrid using that date as a parameter. It's entirely possible that there's a better way to accomplish this.