PC Review


Reply
Thread Tools Rate Thread

Carriage return in a DataColumn

 
 
con.brady@gmail.com
Guest
Posts: n/a
 
      29th Aug 2006
Hi Folk,

I am trying to display a string with a carriage return line feed in it
so when I bind it to a datagrid it shows my text new line then more
text new line etc, in a DataRow

I am currently building up the new string like so:
BigString += string_name + Environment.NewLine;

then returning the string and populating a DataRow dynamically.
dataRow["ColumnName"] = bigString;

When I display the results in a Datagrid I just get [text] followed by
a space then [text].

How do I get it the carriage return to work?

Thanks in advance.
Cheers,
Con

p.s. have I tried \r\n but to no avail

 
Reply With Quote
 
 
 
 
con.brady@gmail.com
Guest
Posts: n/a
 
      1st Sep 2006
FYI

Got this working in the end with a simple HTML <br> tag.

Cheers,
Con

(E-Mail Removed) wrote:
> Hi Folk,
>
> I am trying to display a string with a carriage return line feed in it
> so when I bind it to a datagrid it shows my text new line then more
> text new line etc, in a DataRow
>
> I am currently building up the new string like so:
> BigString += string_name + Environment.NewLine;
>
> then returning the string and populating a DataRow dynamically.
> dataRow["ColumnName"] = bigString;
>
> When I display the results in a Datagrid I just get [text] followed by
> a space then [text].
>
> How do I get it the carriage return to work?
>
> Thanks in advance.
> Cheers,
> Con
>
> p.s. have I tried \r\n but to no avail


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Carriage return Brad Microsoft Access Form Coding 4 19th Jan 2009 06:06 PM
Adding a Hard Return or carriage return in an update query? Lakota2k Microsoft Access Queries 1 15th Sep 2008 04:56 AM
Carriage Return in DataColumn.Expression =?Utf-8?B?SlQ=?= Microsoft ADO .NET 6 29th May 2007 09:26 AM
Search and replace hard-line-return character, not carriage return =?Utf-8?B?VHlsZXIgVA==?= Microsoft Word Document Management 2 16th Aug 2006 09:11 PM
Carriage Return PR Microsoft Access Queries 5 7th Nov 2005 04:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.