Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GRID

Status
Not open for further replies.

EC1

Programmer
Jul 22, 2002
25
BE
Is it possible to create a grid where the height of each row can change, depending on the contents of the row?
Thanks
 
Not with the built in VFP grid. There are a number of 3rd party active grids that will work with VFP.

I use Flexgrid from Videosoft, (company name has changed, but you can find it on which will allow you to set height and a lot of other properties by row.
 
AllowRowSizing allows the user to resize.

if you set the RowHeight property to -1 it automatically resizes the rows to fit the current FontSize property setting. I have never tried it, but maybe you could change the fontsize of the current control of the column for each column. that may cause the RowHeight to change just that row. It may be worth a try. Attitude is Everything
 
Yes it is, but there are limitations. For one the "whole" row would be the same height. Can you explain "depending on the contents of the row"?
 
Danceman

You recall my suggestion last week for a similar situation? The one about the read-only grid for a specific row, so instead of switching between a disabled or enabled textbox you swith between a container holding a larger textbox or a smaller one.
 
mgagnon

That was my first thought, but.
I am thinking that by switching the textbox font on the fly it may effect only the ROW selected. Attitude is Everything
 
Danceman,

I see no response from EC1, but wasn't that what he wanted, increase the size of the row (I'll assume the whole row), based on it's content?
 
I think it sounds like a good idea but since a grid is a container class, the control source of the column is sized to fit within the RowSize of the grid. The rowsize is a grid level property and not a row level property. I tried changing the height of a label control which I have been using in tandem with another (SetAll/CurrentControl etc. using lblYes and lblNo) in an application. The height property is read-only at design time and remains unchanged at run time. Hope this rambling makes sense.
Dave S.
 
Woops, let me change this:
'I think it sounds like a good idea but since a grid is a container class, the control source of the column is sized to fit within the RowSize of the grid.'

I think it sounds like a good idea but since a grid is a container class, the current control of the column is sized to fit within the RowSize of the grid.
Dave S.
 
I want to thank all of you, i will try this ASAP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top