Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column width
Message
From
14/09/2002 15:42:16
 
 
To
14/09/2002 09:35:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00700493
Message ID:
00700548
Views:
9
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform