Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

:confused: :(

Hamlet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...