G
Guest
I have a datagrid column which I want to expand when i type in some text. Initially I tried increasing the column width on the key down event of that DataGridTextBoxColumn, but it didn't work out as expected. Now, I am trying to increase the height of the row to make it as a multiline column.
private DataGridTextBoxColumn dgcComments
dgcComments = new DataGridTextBoxColumn()
dgcComments.TextBox.Multiline = true
dgcComments.TextBox.AcceptsReturn = true
dgcComments.TextBox.WordWrap = true
I am able to increase the row height, but the text is not wrapping to fit the row height. The text keeps scrolling to the left in a single line. I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. Another thing that I tried is to display a vertical scroll bar, but that also fails to meet the reqmt. Anybody has any idea how to wrap text in a text box column of datagrid
Sangeetha.
private DataGridTextBoxColumn dgcComments
dgcComments = new DataGridTextBoxColumn()
dgcComments.TextBox.Multiline = true
dgcComments.TextBox.AcceptsReturn = true
dgcComments.TextBox.WordWrap = true
I am able to increase the row height, but the text is not wrapping to fit the row height. The text keeps scrolling to the left in a single line. I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. Another thing that I tried is to display a vertical scroll bar, but that also fails to meet the reqmt. Anybody has any idea how to wrap text in a text box column of datagrid
Sangeetha.