[Gambas-user] Gridview Select Multiple rows.

Michael mdavies5 at ...169...
Fri Nov 5 05:09:09 CET 2010


I'm a newbie to Gambas and very impressed. Managed to solve all my 
queries and port apps from VB. However I have one problem that has me beat:)
I have a GridView with Mode = Multiple and can select multiple rows; 
either sequentially or at random. So far so good as similar to VB.
I want to loop through the selected items and take some action on each 
item. eg: Delete the row.
I cannot find a way to read the selected row. The Gridview.Row property 
only returns the last selected row.
Typically my grid may contain 1000 rows and I use this function to 
delete old records. It would be tedious one at a time. I could get 
around it by asking the user to enter a cutoff date or range of row 
numbers to delete but this raises the question "What is the point of 
having a Multiple mode attribute?"
Thanks
Mike




More information about the User mailing list