JTaylor
2023-07-22T21:51:21Z
Is there a Method to return a list of the rows that have a checkbox checked rather than looping through the entire grid? I thought I saw a way in the Help file at one point but can't find it now.

Also, is there a way to link a checkbox being checked with row selection. So the lists are always the same. That is, whether I check the box or select a Row both are active. I know I can check events and do it programmatically but didn't know if there was a Property.

Thanks.

Jim
Igor/10Tec
2023-07-25T08:03:07Z
No, iGrid does not have built-in members for that. You can retrieve only the collection of selected objects (cells in cell mode or rows in row mode), but there is no link of selected objects with check boxes inside cells.
JTaylor
2023-07-25T12:30:04Z
Okay. Might be something to consider if looking for new ideas since, I assume, the point of using checkboxes is to make selections, at least that is the only reason I would use them.

Another suggestion would be an option to return only Row numbers, and maybe Rows/Columns also, in a collection that can be used in a ForEach statement. The Typed array, as you noted, can't be used by all and the GetString() is a bit cumbersome.

As always, Thanks and Great Work 🌞

Jim
Igor/10Tec
2023-07-25T15:19:40Z
Don't think that iGrid is used only in VB6/VBA environments. The GetArray() method, perhaps, the safest method to return something that looks like a collection of items for most dev envs. As for GetString(), it was introduced for dev envs that do not support typed arrays. Yes, there are 🙂
JTaylor
2023-07-25T15:43:55Z
I don't use VB so wasn't thinking that. Just offering suggestions that I and perhaps others might find useful. Thanks again.

Jim