Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2003, 02:20 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying multiline text in a datagrid (WinForm)

Is there a way to default a datagrid to display multiple lines of text without having to click on each
individual cell?

Problem: I have several rows of data that I am displaying but because of screen space I can't
make the column width long enough to display the data. I've set the text columns to be multiline and wordwrap.
the problem is that when the datagrid first shows, I can only see the top line of text unless I click on the cell.

Your help is most appreciated....
 
Old July 16th, 2003, 01:45 AM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No there is no properties or method provided by the Datagrid.


Quote:
quote:Originally posted by markb1719
 Is there a way to default a datagrid to display multiple lines of text without having to click on each
individual cell?

Problem: I have several rows of data that I am displaying but because of screen space I can't
make the column width long enough to display the data. I've set the text columns to be multiline and wordwrap.
the problem is that when the datagrid first shows, I can only see the top line of text unless I click on the cell.

Your help is most appreciated....
Deepesh Jain
VB,VBA & .NET Specialist
Wiley Support Team
 
Old November 24th, 2008, 09:52 PM
Registered User
 
Join Date: Nov 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cibinjose Send a message via Yahoo to cibinjose
Default

DataGridViewCellStyle style=new DataGridViewCellStyle();
style.WrapMode=DataGridViewTriState.True;
((DataGridViewTextBoxCell)m_dgvIcons.Rows[i].Cells[0]).Style=style;






Similar Threads
Thread Thread Starter Forum Replies Last Post
passing multiline text to the report snansala Crystal Reports 0 October 17th, 2006 08:51 AM
How to wrap text in a winform Datagrid (vb.net) cliffd64 VB.NET 2002/2003 Basics 1 September 26th, 2006 03:10 PM
VS.NET - Using a multiline text box VSnewbie Classic ASP Databases 3 September 10th, 2004 09:50 AM
Having trouble displaying txt doc on WinForm tpsmith78 VS.NET 2002/2003 1 January 22nd, 2004 12:35 PM
reading different numbers from multiline text ? sagarkoirala VB How-To 2 August 9th, 2003 12:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.