Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread TGrid MultiSelect - loop selected rows
Mon, Apr 2 2018 2:32 AMPermanent Link

thomh

Hello,

In order to loop through the selected rows I have to loop the whole grid and check for Selected[i] = True. This allows me to go through the selected items in a top to bottom or bottom to top order.

So If I select Row #1, Row #10, and Row #5, you either get #1, #5, #10 or #10, #5, #1.

I would like to loop through the selected rows in the order they were selected. So #1, #10 and #5.

Is this something that can be implemented?

// Thom
Mon, Apr 2 2018 8:14 AMPermanent Link

Walter Matte

Tactical Business Corporation

>> I would like to loop through the selected rows in the order they were selected. So #1, #10 and #5.

>> Is this something that can be implemented?


This can be done - but you have to do it.  When items are selected you manage a list of selected items in the order you want them.  No the Grid does not manage the order items are selected.

Walter
Image