Solved

Dynamic .Rowheight Property in Datagrid?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

758 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

21 Experts available now in Live!

Get 1:1 Help Now