Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb
nospam.nospam.nos...@gmail.com:
> Toni wrote:
> > Hi there,
> >
> > I think it's got to do with the order that events fire... In any case,
> > if you use the event "GotFocus" of the TabStrip, it should work as you
> > expect.
> 
> Ok, that's far better than it was, many, many thanks. However after moving 
> the code into GotFocus the first row of the DataBrowser is never 
> highlighted. When the down arrow is pressed first on entering the tab, the 
> second row is highlighted, even though the first was not highlighted. When 
> the up arrow is pressed first on entering the tab, the first row highlights.
> 
> <squint>
> 
> I see no methods available that will allow me to force the first row to 
> highlight :(
> 
> I tried moving rows and refreshing the datasource. I still can't get that 
> first row to highlight.
> 
> I could send fake keyboard events to fix it but that's hardly kosher. 

Salut,

in you example give     DataBrowser1.GridView.Rows[0].Selected = TRUE a
chance but inot in GotFocus, that raise when start the form.
SET it in Tab_Click.
-- 
Amicalement
Charlie


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to