Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different row heights in the same grid
Message
From
06/12/2002 18:48:09
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00730420
Message ID:
00730533
Views:
10
>I need to know if it is possible to change the row height from one row of a grid to another. What I have is a grid that has a comment box that the users want to be able to see the contents without scrolling in the edit box itself. However, they don't want to see a bunch of wasted space if the current comment only has one line entered. Any suggestions?

In these cases, I typically place a Grid on a Form and place an EditBox below it. I set the ControlSource of the EditBox to the Memo field in question and then issue a THISFORM.Edit1.Refresh() in the .AfterRowChange event of the Grid. The contents of the EditBox then reflect what's in the current row of the Grid. Leaving the "TextBox" version of the Memo (ie. memo/Memo) in the Grid serves as an indicator when the row is not current.

You could even get fancy and expand the Grid and contract the EditBox on the fly but I think that would make one woozy.
Previous
Reply
Map
View

Click here to load this message in the networking platform