Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column resizing at run-time -why?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00184544
Message ID:
00184566
Vues:
20
Edward,
Internal code? -that's scary (:O)

At times (this has happened before), I've set the widths in code, like you say, it's just frustrating (especially when there are many columns) that an OOP environment like VFP doesn't do it's job.... alas..

Mark

>So, you're victim of some internal code. If you want to handle grids reliably, you should have some method setting grid properties. As time going and something happens (e.g. you see that width properties go weird), then you add ColumnX.Width=... to this method and keep going.
>>
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform