all groups > dotnet windows forms > february 2004 >
You're in the

dotnet windows forms

group:

Wrapping Text in Column of Windows DataGrid Control


Wrapping Text in Column of Windows DataGrid Control Ganesh Nayak
2/4/2004 10:51:05 PM
dotnet windows forms:
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.
Re: Wrapping Text in Column of Windows DataGrid Control Ken Tucker [MVP]
2/5/2004 3:29:36 PM
Hi,

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1076q

Ken
---------------
[quoted text, click to view]

AddThis Social Bookmark Button