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
NewLine in the datagrid cell
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Ravi sekhar Kakumani5 pointsPosted Jul 27, 2007, 11:27 AM EDT
e.Item.Cells(2).Text.Trim.Replace(vbNewLine, "
")
or
e.Item.Cells(2).Text.Trim.Replace(vbCrLf, "
")
-Ravi