If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Resizing Row in Datagridview in Vb.Net

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-08-10, 12:18
SnehaAgrawal SnehaAgrawal is offline
Registered User
 
Join Date: Mar 2009
Posts: 42
Question Resizing Row in Datagridview in Vb.Net

Hi,
See if someone could shed some light on the following.
I have a Datgridview in Vb.Nt which is bounded to a datasource programmatically.
I have 5 columns in the Datagridview.
my second column's size is 420 I have set it programmaically.
But the Data is the column varies it could be more than 420 i.e upto 840 or less than 420.When the data goes more than 420 I want to break it any display it on next line but in the same row.Is it possible to do this?
Reply With Quote
  #2 (permalink)  
Old 05-10-10, 09:14
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Set WrapMode to true in the DefaultCellStyle of your target DataGridView.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On