Posted 9 July 2026, 8:05 am EST
I am evaluating FarPoint Spread for .Net WinForms and I am using the SelectionChanged event to track selection changes and need clarification on how to properly detect when a cell has been deselected.
Scenario 1:
I select an entire row (all columns in that row). While holding Ctrl, I click a single cell in the middle of that row to deselect it. The SelectionChanged event fires with e.Range values, but I cannot determine that a deselection occurred.
Scenario 2:
I select a rectangle of 9 cells (3x3 grid). While holding Ctrl, I click the center cell to deselect it. The SelectionChanged event fires, but the returned e.Range values do not seem to correspond to the actual column position of the deselected cell. The range appears to span multiple columns that don’t match the deselection action.
Question:
How should I use the SelectionChanged event and its Range property to reliably detect that a cell was deselected? The e.Range values don’t seem to accurately represent the deselection action in either scenario.
Should I somehow compare with GetSelections() before and after to detect deselections, or is there a proper way to interpret e.Range for this purpose?
Any documentation or code examples would be appreciated.
Thank you!
