[Gambas-user] gridview count how many are selected
Jesus Guardon
jguardon at ...2035...
Sun Mar 15 11:57:27 CET 2009
Sorry, I answer myself. I've found a way to do this...
PUBLIC SUB getSelectedRows()
DIM i AS Integer
DIM s AS String
FOR i = 0 TO gv.Rows.Count - 1
IF gv.Rows[i].Selected = TRUE THEN s &= i & ","
NEXT
PRINT s
END
Starting from here, it may be easy to get an specific row data.
Thanks anyway
Jesus
Jesus Guardon escribió:
> I ask the same question, but with *gridview* (mode=multiple).
> I'm able to select rows by code but, is there a way to retrieve the
> selected rows?
>
> Thanks!
>
> Jesús
More information about the User
mailing list