Home | Index | Dotnet4all Snippets | Submit resources
About | Mail us 
Newline in a datatable column (Thursday, January 26, 2006)

 

Found the following interesting discussion in the Newsgroups:

Newline in a datatable column
by:Raymond Lewallen

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(ControlChars.NewLine)
sb.append("B")

when i extract the value of the column after adding, I get "A" instead of
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


 Reply:
by:Anonymous

 It works. Extend height of the row with multiline data in dataGrid and then check again.



Posted by Xander Zelders



0 Comments:

Post a Comment

<< Home

 
Previous Posts
    - Grabber control ?
    - Datagrid with grouping
    - How to change Character Entered?
    - Launch another application and wait for it to comp...
    - Launch another application and wait for it to comp...
    - How to get Windows Directory?
    - Closing MDI Child Form
    - Anyone with VB .NET 2003, please help!
    - Write to a file in a dll
    - Pass variables to another program



Disclaimer & Terms of Use | DotNet4All.Com concept & © 2004 - 2007 by Zelders² - Holland