Page 1 of 1

Grid Selecting Multiple

Posted: Mon Feb 17, 2014 1:14 pm
by dennisw
Maybe this has been addressed here, but I searched and couldn't find it.

Can you select non consectuve rows in a subfile grid using Ctl and Mouse Click and then click and send the list of select rows back to the RPGLE program?

Re: Grid Selecting Multiple

Posted: Mon Feb 17, 2014 2:30 pm
by David
Yes, you can select non-consecutive grid rows.

To do that, you'd set the grid's 'row selection' property to either 'multiple(simple)' or 'multiple(extended)'. Using 'extended' requires using the CTRL or SHIFT keys to select multiple records, 'simple' does not.

In either case, then, you'd bind the 'selection field' property to an indicator. You can then READC to find all the selected records, the indicator bound to 'selection field' will be turned on for any selected rows. Also, you can display the subfile with rows pre-selected by turning on the 'selection field' indicator as you are writing the subfile records.

Re: Grid Selecting Multiple

Posted: Mon Feb 17, 2014 3:24 pm
by dennisw
Thanks.