Carriage return in a DataColumn

C

con.brady

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top