473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Variable datagrid rows height

Hi all.
I need to change datagrid rows height dinamically, so each row shows
all the text contained in the cell.
There is a "PreferredRowHeight" property in the TableStyle of a datagrid,
but it change all rows height to the same value. I need to have different
row heights.
Can you help me??

Bye
Francesco
Nov 20 '05 #1
2 2590
Hi Francesco,
I am sorry, but I do not think this is possible with
the DataGrid supplied by microsoft. There are other third party products out
there which can do this if you have a look. I have seen this question asked
a number of times before, the only thing you can do is to alter all of the
rows to a height.

Regards - OHM
mo******@libero.it wrote:
Hi all.
I need to change datagrid rows height dinamically, so each row shows
all the text contained in the cell.
There is a "PreferredRowHeight" property in the TableStyle of a
datagrid, but it change all rows height to the same value. I need to
have different row heights.
Can you help me??

Bye
Francesco

Nov 20 '05 #2
Et voila' the solution:
http://www.syncfusion.com/FAQ/WinFor...44c.asp#q1075q

Maybe it's not very simple (reflection, etc.) but it's a good solution :-)

Bye
Francesco

"One Handed Man" <Bo****@Duck.net> ha scritto nel messaggio
news:bq**********@sparta.btinternet.com...
Hi Francesco,
I am sorry, but I do not think this is possible with the DataGrid supplied by microsoft. There are other third party products out there which can do this if you have a look. I have seen this question asked a number of times before, the only thing you can do is to alter all of the
rows to a height.

Regards - OHM
mo******@libero.it wrote:
Hi all.
I need to change datagrid rows height dinamically, so each row shows
all the text contained in the cell.
There is a "PreferredRowHeight" property in the TableStyle of a
datagrid, but it change all rows height to the same value. I need to
have different row heights.
Can you help me??

Bye
Francesco


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kat | last post by:
Hi, I'm trying to set up an asp.net page using flow layout so I'm putting all my controls into a table grid, etc. I use several radiobuttonlists and datagrids that are generated from datasource....
2
by: Tor Inge Rislaa | last post by:
How to change row height in a DataGrid I have DataGrid that is filled with data from a table in a DataSet. The content of the cells is text of more than one line (as a note field). What I...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
5
by: Dennis | last post by:
I have a class that inherits from DataGrid. I can set the rowheights in a DataGrid by tappig into the "get_Datagridrows" method. However, this does not work for classes that inherit from...
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
3
by: Tor Inge Rislaa | last post by:
Hi, I have a need of controlling the row height of the individual rows in a data grid. The row height will be adjusted after the datagrid is filed with data and the height will be different for...
4
by: skOOb33 | last post by:
I successfully autosized the columns and rows on my Datagrid, and am now facing another issue. Having the sorting ability by clicking the column headers is key, but when I do that, it resizes all...
3
by: Sharon | last post by:
I have a DataGrid that contains a few rows and column header. I wish to change the DataGrid height to be the exact height of the total height of the rows and column header, so that no gray area...
0
by: Familjen Karlsson | last post by:
Hi I have downloaded some code and tried it and nothing happens with the datagrid. Explain what is wrong and what I have to do please. I have tried to Import the namespace Hamster and it didn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.