In any event you can set this easily melodramatically like this:
VB.NET:
DataGridView1.Columns(0).D
C#:
DataGridView1.Columns[0].D
where 0 is the column index
Main Topics
Browse All TopicsHi,
I have a datagridview with some colums. 2 colums have a text which is too long. For column 1 it's no problem (the text is truncatet), but when the text in column 2 is too long i will wrap the line. Is it possible to make it possible that only column 2 wrap the line is the text is too long.
I work with VB.net 2005
thnx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Its an order selection screen. Rows with the customernumber and name and productnumber and name are in the gridview. The customer name is in it, you can see on the beginning of the text what the customer is. The product name however starts often with the same description and the difference is on the end of the name. e.g. Frozen tomatoes in thin red, Frozen tomatoes in thin green.
You can understand that when the colors are not shown that it is difficult to choose the right product.
In the datagridview propertypage (F4) I select under columns (collection) the articlename column. Then i set autosizemode on displayedcells.
What is missing?
Sorry dude, I'm out of ideas, have you tried setting it column by column? I noticed you are doing this:
DataGridView1.AutoSizeColu
Instead of what I suggested which is:
DataGridView1.Columns(0).D
Have you tried removing the:
DataGridView1.AutoSizeColu
Business Accounts
Answer for Membership
by: Omego2KPosted on 2009-10-02 at 06:43:18ID: 25477763
Wrap means that you want text that's too long to cut off and go to the next line, do you want it to go to the next line?