Multi-line data in a datagrid row
Hi folks,
I am trying to put text into a datagrid that does not fit in the normal view. I want to allow the datagrid to allow for multi-line data in the datagrid row. I ame using a TableStyles and have tried to modify the textbox definition to allow for the mult-line as follows
Dim ts1 As New DataGridTableStyle()
' Add a second column style.
Dim TextCol1 As New DataGridTextBoxColumn()
TextCol1.MappingName = "E_Description"
TextCol1.HeaderText = "E Description"
TextCol1.Width = 500
TextCol1.TextBox.AutoSize = True
TextCol1.TextBox.Multiline = True
TextCol1.TextBox.WordWrap = True
TextCol1.TextBox.Height = 50
ts1.GridColumnStyles.Add(TextCol1)
E_List.TableStyles.Add(ts1)
When I run the application, I am still left with the single line data.
Does anybody have any idea how to get around this problem
Many thanks
Hi folks,
I am trying to put text into a datagrid that does not fit in the normal view. I want to allow the datagrid to allow for multi-line data in the datagrid row. I ame using a TableStyles and have tried to modify the textbox definition to allow for the mult-line as follows
Dim ts1 As New DataGridTableStyle()
' Add a second column style.
Dim TextCol1 As New DataGridTextBoxColumn()
TextCol1.MappingName = "E_Description"
TextCol1.HeaderText = "E Description"
TextCol1.Width = 500
TextCol1.TextBox.AutoSize = True
TextCol1.TextBox.Multiline = True
TextCol1.TextBox.WordWrap = True
TextCol1.TextBox.Height = 50
ts1.GridColumnStyles.Add(TextCol1)
E_List.TableStyles.Add(ts1)
When I run the application, I am still left with the single line data.
Does anybody have any idea how to get around this problem
Many thanks