Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control
Message
De
14/06/2002 01:42:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00668069
Message ID:
00668389
Vues:
20
>What I need to do is, increase the colunm sizes to match that of the table column sizes.
>
>If I have a table Test.dbf can I write something similar to this:
>
>if used("Test")
> select Test
> use
>endif
>use Test
>
>thisform.datagrid.recordsource="test"
>
>n=test.column.count
>
>for i=1 to n
> thisform.datagrid.column1.with=test.column(i).width
>endfor

Ria,
Datagrid horizontal scroll bar would disappear when all visible columns fit to width.
Just out of curiosity doe this code really work with datagrid ?
PS: Do you have any good reason not to use VFP native grid.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform