display multiple lines in a single row of gridview.. RRS feed

  • Question


    var input = "SET ANSI_NULLS ON $ IF NOT EXISTS.";


    var array = input.Split(new[] { "$" }, StringSplitOptions.RemoveEmptyEntries); var output = string.Join("<br />", array);




    above code is working if response.write(), but when i need to display that "output" onto a gridview coloumn, "<br />" isnt working, any alternatives?

    Thursday, July 1, 2010 6:54 AM


  • Hi jason,

       Welcome to MSDN forums! I'm glad to see your active participation and discussion in MSDN forums. Based on your issue 

      Please try use css style in your gridview ,because it'll make html table in the client side.

       Simple site please refer to http://www.css3.com/css-word-wrap/ (CSS WORD-WRAP

       Hope this will help you!  

      If you still have any doubt about web application, please post on http://forums.asp.net/

    Please Mark as Answered If this is helpful Or Un-Mark as Answered if it is not helpful.

    Best Regards,
    Yan Jun
    Microsoft Online Community Support

    Tuesday, July 6, 2010 3:48 AM

All replies