Newline in a datatable column

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raymond Lewallen

    #1

    Newline in a datatable column

    I have tried everything to get a newline character into a datatable to no
    success.

    I'm trying to add the following to a column in a datatable:

    sb.append("A")
    sb.append(Contr olChars.NewLine )
    sb.append("B")

    when i extract the value of the column after adding, I get "A" instead of
    "A/nB" (or the equivalent). Is the value being cut off at the newline
    character? I'm trying to bind this to a datagrid where I need multiple
    lines in a column on a windows form.

    What I have:
    Row1 Z Y X A

    What I need:
    Row1 Z Y X A
    B

    Thanks for your help.

    Raymond Lewallen
    Federal Aviation Administration


Working...