Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Row Height in Grid for memo fields
Message
From
18/12/1997 16:01:33
 
 
To
18/12/1997 15:47:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00067029
Message ID:
00067056
Views:
38
>>>I would like to display a memo field in a grid and have the row height change based on the amount of data in the field. Is this wishfull thinking or is there a way to do it?
>>>
>>>TIA
>>>Jon Wilshusen
>>
>>Be careful what you wish for. If your users are not limited by how much data they can place in the memo field you could "blow up" your grid. Anyway, I think you would have to programmatically do this with a calculation based on how many memLINES are in the memo field and how much height you need per line based on font/fontsize, etc.
>
>And remember that there is only one rowheight setting per grid. IOW, each row cannot be dynamically sized independent of the others. If you did manage to set rowheight on the basis of the contents of the active row, you would still end up with a really funny looking grid (and after all that hard code!).
>Instead, you might want to think about putting an edit box just below the grid (or wherever) that would show the contents of the memo field in the active row of the grid.

Erik,
I already thought about the edit box below the grid, but I would like to see as much of the data as possible. What I have done before is had a field with 55 characters and just had the user add another record but you lose that word wrapping feature. I would like it to look something like

-ITEM QTY DESCRIPTION UNIT
- 1 1 ALL OFF THE TEXT THAT YOU WOULD LIKE TO 100.00
- TYPE TO YOUR LITTLE HEARTS CONTENT NOW
- WOULD THAT BE GREAT
- 2 1 JUST SOME MORE STUFF ETC ETC ETC 25.00

any Ideas

Jon
Thanks
Jon
Non-MVP Non-MCP Non-MCSE

Visual FoxPro, What else is there?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform