Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a grid using a cursor that is created at runtim
Message
From
13/08/1997 12:15:30
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00044365
Message ID:
00044469
Views:
36
>>>>How do I create a grid based on a cursor that is created (using an SQL-select) in the form's init method?
>>>>
>
>>If you put the SELECT... into the LOAD method instead of the INIT method you can set up your grid in advance and there is no need to do it programmatically at run time.
>
>Barbara,
>
>I think my question was ambiguous, but you answered the question that I intended to ask. I want to define the grid during development not at run time. I have put my Select statement in the Load method, but I still don't see how this lets me create the grid manually or using the builder. The only tables that show up are physical tables on disk not the logical ones (cursors).
>
>Could you explain how I build the grid using this cursor.

You can handle grid in Form Designer even if RecordSource is empty. So, you can set Grid.ColumnCount, column widths, header captions etc. in design mode. In run-time you populate cursor (I prefer Init event) and set Grid.RecordSource, and, if necessary, Column.ControlSources.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform