Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,
How to add multiple new string lines in a datatable column in c#.

Example:
string aaa =first string;
string aaa = second string;

I need this to string lines are separate lines but same column.Like

first string
second string
Posted

1 solution

Just use the "\n" bew line character.
E.g. @"first string" + "\n" + "second string";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900