format string in grid template

radcoders used Ask the Experts™
Want to have Posted On:, Posted By:, Approved?:, Body:  all on seperate lines in grid template
below is how text is currently showing up:

Posted On: 7/16/2009 2:26:24 PM Posted By: XXXXXXXX Approved?: N/A Body: This is a test post An osteoporosis drug proven to save lives after hip fractures may do so by strengthening the body's immune system, according to geriatrics researchers at Duke University Medical Center.
As you can see I am passing Eval fields to C# code behind to try to format text to be on seperate lines but not working:
<telerik:GridTemplateColumn UniqueName="Edit" HeaderText="Post" ReadOnly="true" Display="false" ItemStyle-VerticalAlign="Top" HeaderStyle-Width="600px" >
                                            <%# RadGrid2_Post( Eval("CREATEDON").ToString(), Eval("USERNAME").ToString(),Eval("APPROVED").ToString(),Eval("BODY").ToString())%>
Code behind:
protected string RadGrid2_Post(string postedON, string postedBy, string approved, string body)
        string s = "<b>Posted On:</b> " + postedON + "\r\n\r\n" +
                      "<b>Posted By:</b> " + postedBy + "\r\n\r\n" +
                      "<b>Approved?:</b> " + approved + "\r\n\r\n" +
                      "<b>Body:</b> " + body;
        return s;

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Have you tried using <br /> instead of \r\n?


You the man!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial