Solved

Dynamic .Rowheight Property in Datagrid?

Posted on 2004-09-22
2
300 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2003, my txt file export is running backwards 4 46
VBA color chart bars 12 78
Reading the Contents of a Directory In Access VBA 5 58
vb6 connector to SQL Server 2 34
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now