Lightening


I added a new column to a grid in my form.

But it was squeezed to a vertical thin line though I can expand it using

my mouse pointer.  How can I let it stay as a fixed width I set its width=75.

 

Thanks!




Re: how to fix the width of a column in grid?

dni


Normally you should be able to change column width, from properties window, selecting grid and then the column. Also you may check property AllowAutoColumnFit from grid to be 2.





Re: how to fix the width of a column in grid?

Lightening

Sorry, I use VFP6. I do not see AllowAutoColumnFit in my grid property.

I changed AllowHeaderSizing back and forth, but did not help.






Re: how to fix the width of a column in grid?

dni

Sorry I thought you have 9, but is valid in 6 the same think. You may select from properties (under grid1 or grid name column number and then ajust width property. You don't need to select header, select just proper column number from properties widow.




Re: how to fix the width of a column in grid?

CetinBasoz

with thisform.myGrid
.Columns( .columnCount ).Width = 75
.Columns( .columnCount ).resizable = .f.
endwith





Re: how to fix the width of a column in grid?

Lightening

Its strange. It is OK now after I changed the column's width to 80. Not sure if it's because the previous value 75 was taken by another column.

Thank you all.





Re: how to fix the width of a column in grid?

AndyKr

No, this functionality was not available until VFP 8.0