I'm still confused on which "is row selected" property I can count :(
. There is regression between TDrawGrid.row(),
TDrawGrid.datacol.hasselection and
Length(TDrawGrid.datacol.selectedrows). Attached demo. Run it and:
1. Select "Test 1" row
2. Hold CTRL and select "Test 2" too
3. You have now 2 rows selected, keep CTRL pressed and try do backward
unselect - click on "Test 2" and then on "Test 1". Should get my
message "invalid selection". Visually you don't have anything selected
but grid.row return last selected row, hasselection is also TRUE but
array selectedrows is empty
4. Repeat this without multiselection. Select any row without CTRL.
Then press CTRL and click on selected row for unselect it. In this
case it is almost as I exptected to behave - grid.hasselection is
FALSE and selectedrows is 0 but grid.row() still return last selected
row

Is it something which I don't understand (difference between selected
and focused) or bug consequent from last changes in selection behavior
also reported by me?

Regards

Attachment: mse_grid_selection.7z
Description: application/7z-compressed

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to