Skip to content

NewLine in the datagrid cell

Ravi sekhar Kakumani

Asked Jul 24, 2007, 7:04 AM EDT1 answer
Share
LinkedInX
I have to display text in the Datagrid. That field has
NewLines in it. When the datagrid is rendered, they don't
appear.

There is the update button in the grid , when i click the update button it's updating the selected row to the text boxe with the new line format, but not showing in the grid.


Can any one please post answer for this???

-Ravi Kakumani

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Any one of the following is working..

    e.Item.Cells(2).Text.Trim.Replace(vbNewLine, "
    ")
    or
    e.Item.Cells(2).Text.Trim.Replace(vbCrLf, "
    ")

    -Ravi
    0