Solved

Dynamic .Rowheight Property in Datagrid?

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

830 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