Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Re: Grids
Miscellaneous
Thread ID:
00625924
Message ID:
00626239
Views:
11
Hi!

Unfortunately, it is not possible to display variable line height in the single VFP grid. I know how to put several grids one under another with different line heights and scroll them properly by a single grid with scrollbar, but this is cumbersome. To display a memo data in grid, just put edit box into the grid column and set the sparse for column to .F., then specify current control for column that edit box name. This will display memo data in the edit box. Then allow users to change the row height by dragging the left 20 pixels of the grid line between first and second grid rows (AllowRosSizing property of grid =.T.). So when users want to see more lined in the edit box, they will be able just to change the row height at will.

You can also use the Excel displayed inside of the VFP form instead of the grid, but this might be too complex and also looks like a bit of work if you need also usual VFP grid functionality...

>Hello,
>
>I have a table with several hundred records. One of the fields in the table is a memo field. I would like to display the contents of the memo fields in a grid. Some of the memo fields have one line of text. Other memo fields have several lines of text.
>
>Has anyone figured out how to display grid height based on the amount of information in a particular memo field. When a memo field has one line of text, I want the grid height for that row to be one line high. When a memo field has 4 lines of text, I want the grid height of that row to be 4 lines high.
>
>I have asked this question before, but, to date, no luck.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform