Solved

Dynamic .Rowheight Property in Datagrid?

Posted on 2004-09-22
2
301 Views
Last Modified: 2013-12-26
In a datagrid control, is there any way to do either of the following?

1. Make the Rowheight different for two different rows in the same datagrid.

2. Make the Rowheight FOR A SINGLE ROW adjust dynamically based on the amount of text in a row.

If anyone can tell me how to do either of these things, I'll give you 500 points.  I guess that you'd have to be able to do the former to be able to accomplish the latter.
0
Comment
Question by:LucasWhite84
2 Comments
 
LVL 13

Accepted Solution

by:
Michael_D earned 500 total points
ID: 12128571
No. Datagrid Control doesn't support changing height of single row. MSFlexgrid can do that.
0
 
LVL 10

Expert Comment

by:anv
ID: 12130156
Exactly ..Michael_D is right..

here's how u do that

With MSFlexGrid1
    .RowHeight(1) = 500 'will change height of row 1 to 500
End With
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question