Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Woes..
Message
From
14/12/2000 15:31:33
 
 
To
14/12/2000 15:27:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00453595
Message ID:
00453597
Views:
23
>Hi all..
>Is there a way to dymanically change the contents of a grid? Sort of like a listbox has addlistitem?
>
>The thing is, I only want to populate a grid with part of a database, and the part I want to fill the grid with will change every few minutes or so. Is this possible?

The grid RecordSource is a cursor of some sort. As the records in the cursor change, call the grid's Refresh() method. The new records will show.

If you need only some of the records, you could either create a view and use the view as the grid.RecordSource. Then you would REQUERY() the view before refreshing the grid.

Or you could set a filter on the cursor. It's usually slower than using a view, esp with a large set of data. If the data set is small enough, it shouldn't be a problem.

HTH
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform