I am writing to bring to your attention an important behavior I've discovered while working with SfDataGrid in Flutter, which I believe should be documented to help other developers.
When programmatically selecting a row in SfDataGrid, particularly after that row has been previously deselected or cleared, I found that it's necessary to first deselect all rows by setting the selectedIndex to -1 before setting the new selectedIndex. Without this step, the new row selection doesn't always take effect as expected.

Best,
Gianluca
p.s. please note this forum do not allow assignment symbol...