[Gambas-user] TableView: Mark row

Bruce Steers bsteers4 at gmail.com
Mon Jul 31 18:17:10 CEST 2023

On Mon, 31 Jul 2023 at 12:52, Hans Lehmann <hans at gambas-buch.de> wrote:

> Hello.
> Is it correct that these two statements are the same?
> (1) tblView.Rows.Select(0)
> (2) tblView.Rows[0].Selected = True
> With kind regards
> Hans

they will do the same thing a different way.

the first way uses a method from the GridView.Rows class that can also set
many rows at once. http://gambaswiki.org/wiki/comp/gb.qt4/_gridview_rows

the second individually sets a rows Selected property via
GridView.Row.Selected . http://gambaswiki.org/wiki/comp/gb.qt4/_gridview_row

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230731/aeb6c81c/attachment.htm>

More information about the User mailing list