Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column resizing at run-time -why?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00184544
Message ID:
00184551
Views:
18
Thanks for your reply!

I set the RecordSource in the Form Designer, I make no changes to it thereafter. All columns properties are set in the Form Designer, too. There is no code in the form whatsoever. That's whats so weird...

Mark

>>Can someone tell me what this is:
>>
>>I create a form with a table in the DE.
>>I add a grid to the form and set the RecordSource to the table.
>>I specify a ColumnCount for the columns I want (3 or 4, etc..).
>>I set the ControlSource of each column to different field names.
>>
>>When running the form, all column widths are resized to what looks like default widths! Everything is very simple - no subclassed controls, no views, no method codes, etc...
>>
>>I've tried setting Resize of columns to .F. (??? desparate!).
>>
>>Any help? (I tried searching previous messages, but it errors out)
>>
>>Mark
>
>Anytime you touch grid.recordsource you may force grid to rebuild from scratch, including resetting column.width back to some 'default' values.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform