wrap text in datagrid

K

kalyan kamesh

Hi All,

I'am a newbie in .net programming.My requirement is in vb.net on
formload i'am filling my datagrid with the columns from table.but i
wan't the values to be wrapped on loading so that i need not drag the
columns in the grid to see the value.please help.
 
C

Christopher C. Bernholt

If I understand you correctly, you want the data from the table to word
wrap when the cell is populated? To do this, you will need to subclass
the DataGridTextBoxColumn and override the OnPaint handler.

See the following link:
http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=2922

kalyan kamesh submitted this idea :
Hi All,

I'am a newbie in .net programming.My requirement is in vb.net on
formload i'am filling my datagrid with the columns from table.but i
wan't the values to be wrapped on loading so that i need not drag the
columns in the grid to see the value.please help.

--
--------------------------------------------------
Christopher C. Bernholt
I.T. Research & Development
..NET Re-Engineering Team
R & L Carriers, Inc.
http://www.gorlc.com
--------------------------------------------------
 
K

kalyan kamesh

Hi Christopher

thanks for u r early reply.If u have time please get me this in vb.net.


Regards
Kalyan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top