• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1240
  • Last Modified:

gridview omitting <BR> in databound field

After doing a conversion from asp 1.0 to 2.0 I'm also upgrading all of my datagrids to gridviews.  What I'm doing is using a mysql query to bind it to a databound field in a gridview.  The datagrids were able to handle the <BR> and add the appropriate line break, however the gridview is actually adding <BR> to the text.  I've tried adding controlchars.NewLine within my concat function of mysql but that didn't work.  I also tried doing a .replace("<BR>", "****"), the '*' is for testing, during RowDataBound and PreRender but to no avail.

Any Ideas??????
1 Solution
lyntron4545Author Commented:
I solved my own question.

The solution was to convert the databound column to a template field.

Can I have my points back please?
Jason ScolaroCommented:
Hi lyntron4545,

Please, when you get a chance, close this question.  

To do so, post a zero-point question in http://www.experts-exchange.com/Community_Support/

Subject: Moderator Please PAQ
Body: Please PAQ this question, I answered it myself

Thank you!

-- Jason
Closed, 500 points refunded.
Site Admin

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now