Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor in a grid
Message
De
06/03/2007 17:11:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/03/2007 16:53:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01201093
Message ID:
01201250
Vues:
31
>>>>>>>For design-time see
>>>>>>>Re: Changing grid's RowSource in Design-time Thread #674623 Message #674846
>>>>>>>
>>>>>>>And I just found that I forgot to add attribution in my code and was trying to find this thread by different name. Shame on me.
>>>>>>>
>>>>>>>For run-time I either use safe select approach or CA with CursorRefresh()
>>>>>>
>>>>>>Thanks, Naomi, but there;'s a simpler soln. I'm after
>>>>>
>>>>>What can be simpler than zapping a cursor and appending into it from the temp one?
>>>>
>>>>This:
>>>>
>>>>thisform.grid.recordsource = ""
>>>>
>>>>* Create new cursor...
>>>>
>>>>thisform.grid.recordsource = cursor
>>>
>>>And then you have to add a ton of code to get the grid to behave like it used to do? No this is NOT the way, Terry. But this is:
>>>
>>>Select whatever into cursor curtemp
>>>Select Gridcursor
>>>zap
>>>appe from dbf('curtemp')
>>>yourgrid.refresh()
>>
>>Is this considered tons of code? :)
>>
***Note to self: grid is behaving as I want
Cetin
>
>I often experienced that code in the grids different events, and properties of the grid, were reset vith the controlsource=space(0) method. This never happens with my code.

Try recordsource="" instead.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform