Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - added a skinny column I want wider
Message
 
To
04/05/1998 05:47:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00096662
Message ID:
00097250
Views:
22
>>I've got a grid which works wonderfully but... After I'd first got it going I found I needed to add another column. Easy! But my column has a width of 75 but when the form runs the width is only 9. I have a refresh code to check the width is atleast 50 and if not to set it to 50. This works at the grid level, but not if I put it in the columns refresh event.
>>
>>Any ideas why I need to do that anyway?
>>
>>I put my grid in a class to get an easy display of what's in the column
>> ADD OBJECT test.grcmonths.grhmonths AS header WITH ;
>> FontBold = .F., ;
>> FontSize = 8, ;
>> Alignment = 2, ;
>> Caption = "Months", ;
>> Name = "grhMonths"
>>
>>
>> ADD OBJECT test.grcmonths.txtmonths AS txtstandard WITH ;
>> FontBold = .F., ;
>> FontSize = 8, ;
>> Alignment = 1, ;
>> ReadOnly = .T., ;
>> Name = "txtMonths"
>>txtStandard has a default width of 90
>>
>>Thanks - Sarah :)
>Sarah,
>After adding column :
this.columns(this.columncount).columnwidth = 90 && In a grid method
Would do the job. As I could understand you set the width of textbox conatined not the column itself.
>Cetin
That's basically what I do, I don't add the column programmatically though. Funny that I have to do anything when it looks great at design time! Still it works now. Thanks - Sarah
Sarah King
pcpropertymanager.com
Previous
Reply
Map
View

Click here to load this message in the networking platform