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:
00184555
Vues:
21
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.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform