Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column width
Message
 
À
14/09/2002 09:35:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00700493
Message ID:
00700548
Vues:
10
>Cetin,

After trying I found that I had to have a
grid.RECORDSOURCE=''
grid.columncount=0

before adding columns with a function

grid.ColAdd('col1','Ident','x.CallId',40)

and then at the end have

grid.RECORDSOURCE='x'
grid.RECORDSOURCETYPE=1

If the line with recordsource='' was not added, the width were all equal to a default value.

But then all my columns was replaced with the fields from the alias and only my widths was OK. So then I found that I had to add columns with width before adding the recordsource and then replace column countrolsource and heading at the end.

.RECORDSOURCE=''
.columncount=0

.ColAdd('col1',nLen)


.RECORDSOURCE='x'
.RECORDSOURCETYPE=1

.ColRep('col1','Ident','x.Id')


The grid.colAdd() contains code to replace .header1 and .text1 with my own classes to allow double-click and so on.

Does it have to be so difficult?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform