Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another simple grid question
Message
From
27/10/1998 10:31:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/10/1998 10:20:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00150964
Message ID:
00150976
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform