Question
How can I get the currently selected cell with:
- SelectionMode.Row
- SelectionType.Multiple
I'm referring to the same cell that gets the colored CSS box-highlight in the GUI.
What I Tried
I haven't found a solution that works in all cases.
Attempt #1
It almost worked for me to use "Both" selection mode instead of "Row", and call GetSelectedRowCellIndexesAsync(). In most cases, this returns exactly one list item, the selected cell, as intended.
However, when using SHIFT-click to select multiple rows,
GetSelectedRowCellIndexesAsync()
returns multiple cells. It is not possible to tell which of the cells is the one I clicked on that gets the CSS highlight.
Attempt #2
I can get the selected cell if it was the one that drops down the context menu. But it needs to also work in the general case where there is no context menu.