[Gambas-user] Gridview
Benoit Minisini
gambas at ...1...
Wed Oct 31 12:49:40 CET 2007
On mercredi 31 octobre 2007, Steven Lobbezoo wrote:
> Le mercredi 31 octobre 2007 11:06, Benoit Minisini a écrit :
> > On mardi 30 octobre 2007, Steven Lobbezoo wrote:
> > > Ok :
> > >
> > > 1 rsE = db.Exec("Select No FROM Clients WHERE Type = 'Acheteur'
> > > ORDER BY No DESC LIMIT 1")
> > > 2 FOR r = 0 TO GridView2.Rows.Count - 1
> > > 3 IF GridView2[r, 0].Text = Str(rsE!No) THEN
> > > 4 GridView2.Row = r
> > > 5 GridView2[r, 0].EnsureVisible
> > > 6 BREAK
> > > 7 END IF
> > > 8 NEXT
> > >
> > > (I added the line numbers)
> > > I verified r just before statement 4 5 and 6
> > > It's allways 167
> > > I allso verified Gridview2.Row in the same locations
> > > It's allways -1
> > >
> > > Steven
> >
> > Is it with gb.qt or gb.gtk?
>
> With gb.qt
>
> Steven
>
It is very hard to guess what happens without a full test project.
Anyway, I changed some little things in the last revision in the way GridView
handle its Row and Column properties. Can you try that and tell me if it
changes anything to your bug?
Regards,
--
Benoit Minisini
More information about the User
mailing list