[Gambas-user] Problem with tableview

Gianluigi bagonergi at gmail.com
Tue Dec 15 22:18:35 CET 2020


Il giorno mar 15 dic 2020 alle ore 20:25 T Lee Davidson <
t.lee.davidson at gmail.com> ha scritto:

> On 12/15/20 8:18 AM, Dag Jarle Nerland Johansen - Gambas wrote:
> > Hi,
> > I have a problem setting the row in tableview.
> > I have a control tableview called ADR_TV.
> > Even if I say ADR_TV.Row=5 it does nothing (have more than 5 rows)
> > I also tried with ADR_TV.ScrollY=5.
> > And ADR_TV.Rows[5].Selected=True sets line 0 additionally to be selected
> > Of course I normally use a variable to set this, but the above shows my
> problem,
> > Thankful for any help,
> > Dag
> > Gambas 3. 15.2
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> Are you trying to set the row index or select a row?
>
> Setting the row index does nothing that is visible.
> I am unsure what the ScrollY property is for since it does not appear to
> do anything visible. And, even the Scroll method does
> not scroll the view to the specified cell, even after a Refresh.
> GridView1.Rows[x].Selected=True works as expected for me selecting only
> the specified row and no other.
> --
> Lee
>

But how is the Mode property set, to Single or?

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201215/ed823e55/attachment-0001.htm>


More information about the User mailing list