Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another simple grid question
Message
De
27/10/1998 10:31:09
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
27/10/1998 10:20:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00150964
Message ID:
00150976
Vues:
16
>I have a grid in which the RecordSourceType is "SQL Statement". I supply a RecordSource SQL string in the grids init. Can I change that RecordSource SQL sting at run time to something different? How do I get the grid to requery since it is not a view.
>
>Thanks
Greg,
You can just change the SQL string. But this preserves grid column formatting. If you want it to change also, before assigning new SQL string :
thisform.mygrid.columncount = -1
Refreshing grid is enough to "requery" it. If you have "where" in SQL then be sure fields used with "where" are indexed.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform