Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids - added a skinny column I want wider
Message
From
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:
00096663
Views:
21
>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
Ç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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform