473,385 Members | 1,766 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,385 software developers and data experts.

Automatic row height datagridview

Hi all,

I'm new to C#. So excuse the obvious. I have a datagridview on a form. One
of the columns is bound to a table column that is of text data type. It
contains various lenths of text. I have set the column in the datagrid view
to autosize to fill, and the wrap property to true.
But because the text is aof varying sizes. How can I then get the rows to
autosize it height based on the text in there. So that the affect is that
the rows are not set to a single global size but will vary to accomodate all
text.

Thanks
Robert

Jun 6 '06 #1
1 10011
HI,

I found the property, but now when scrolling down many rows the row height
is not correctly set, until I resize the form width slightly. Is there a way
to do this automatically

Thanks
Robert

"Robert Bravery" <me@u.com> wrote in message
news:eT**************@TK2MSFTNGP02.phx.gbl...
Hi all,

I'm new to C#. So excuse the obvious. I have a datagridview on a form. One
of the columns is bound to a table column that is of text data type. It
contains various lenths of text. I have set the column in the datagrid view to autosize to fill, and the wrap property to true.
But because the text is aof varying sizes. How can I then get the rows to
autosize it height based on the text in there. So that the affect is that
the rows are not set to a single global size but will vary to accomodate all text.

Thanks
Robert

Jun 6 '06 #2

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

Similar topics

0
by: Jyrki | last post by:
Hello, I have a small problem in regards to DataGridView component. I would like to know how to set row heights in a DataGridView. Sofar, I have used command: ...
0
by: jhoge123 | last post by:
I've figured out how to set DataGridView columns to wrap text if the text doesn't fit in the alloted column width. This is great, but the row height isn't enough to display the wrapped text. Is...
5
by: Abhishek Srivastava | last post by:
Hello All, There is a particular feature which I want to have in visual studio .net suppose I create a class ClassA { private string name; private int age;
1
by: martin1 | last post by:
All, I knew .NEt 2.0 DataGridView column sort is automatic, I don't want sort column, is anybody knew how to not sort column in DataGridView? Thanks
3
by: steve | last post by:
Hi All How can I get the datagridview to redraw after changing the rowtemplate.height at runtime ( it is databound to a datatable) I have tried datagridview1.refresh etc to no avail (The row...
3
by: mac | last post by:
I have a datagridview that I populate with the result of a web service. The webservice sends multiple rows back with each row as one element of an array. I use a for loop and the...
4
by: Vidhura | last post by:
This article explains how to make all the rows height the same in DataGridView in .Net 2.0 while using AutoSizeRowMode In DataGridView 2.0,there is a option to resize row to fit the content of...
4
by: Slickuser | last post by:
How do I automatic move the X & Y to create a ellipse function as below, DrawCircle? Or there any sample source code out there? I want it move down by user input. How can I achieve this?...
1
by: MFayaz | last post by:
Hello! I have to refresh datagridview when database update , IS there any way to solution that my datagridview auto refresh when any user update database. Thanks in Advance
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.