Open yaobiao131 opened 11 months ago
and If I modify the selected value of the combobox and then scroll it, the selected value will go to other rows.
I am having the same issue
My current work around (i am using MVVM) is to check if selected index is -1. If so (for me) it means it was changed by the datagrid and not the user
set
{
if (value != -1)
{
_selectedIndex = value;
OnPropertyChanged(nameof(SelectedIndex));
}
}
My current work around (i am using MVVM) is to check if selected index is -1. If so (for me) it means it was changed by the datagrid and not the user
set { if (value != -1) { _selectedIndex = value; OnPropertyChanged(nameof(SelectedIndex)); } }
it work well, thanks
Can you attach a minimum sample please? We recently had a similar issue which was solved as a binding was simply wrong
Same problem here, I tried to do a minimal repo sample DataGridTest. You need to click "enrich" button to set the combobox values (did this because it mimics what I have on a bigger app) ;
What I get :
I could not reproduce what I have on my bigger, which is the last 2-3 lines which changes SelectedValue every time I scroll them out and then in.
@blueperspective great sample 👍 Added it to our roll-up list. @grokys
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Add any other context about the problem here.