Wrapping Text in Column of Windows DataGrid Control

G

Guest

Hi,
I have a Windows Datagrid Control on a windows form. I have created the columns for the Datagrid dynamically. I am binding the datagrid columns to a Dataset. One of the columns in the Dataset contains a lot of text. My requirement is that the text should be displayed on the Datagrid column [the width i have fixed for the column is 300]. Since the text is very big, the whole text is not displayed in the column.
Could anyone suggest any method by which I can wrap the text in the Datagrid column so that the height of the column increases automatically and the text fits in the column without resizing.
Basically what i want is the word wrap functionality in the datagrid column.

Thanks in advance.
Ganesh Nayak
 

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