Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refresh Problems in VFP 3.0
Message
 
 
To
31/12/1998 02:55:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00171824
Message ID:
00171848
Views:
35
>In VFP 3.0, I'm using a grid control on a form to display the contents of a cursor. In order for the contents of the cursor to show up in the grid, I have to set the RecordSource property programatically as opposed to defining it in the Properties Window (otherwise it just comes up blank). Likewise, when the contents of the cursor changes I have to re-assign the RecordSource property as opposed to just refreshing the grid. Ok fine, but when I do that, all of the column width settings I set for each columns get reset. Any clue on how to prevent this? Or am I just going about this all wrong?
>
>TIA,
>-Mike

Mike, If you set the columncount to -1 each time you reset the recordsource, the columns will size automatically to the field size.
-TomC
Previous
Reply
Map
View

Click here to load this message in the networking platform