C
chrismichaelgardner
I have a very simple Datagrid with one bound field. The field has
Environment.NewLines in it. When the datagrid is rendered, they don't
appear.
I have tried a few of different ways to get them to appear:
1.) Replace Environment.NewLine with <br> before saving to the
database.
2.) Replace Environment.NewLine with </br> before saving to the
database.
Neither of these work because ASP.NET just ends up printing out the
literal <br>, </br>.
Is there a way to replace the Environment.NewLines when the datagrid is
rendered? Alternatively, is there a specific value I should be saving
to get the Datagrid to properly render the <br>?
Environment.NewLines in it. When the datagrid is rendered, they don't
appear.
I have tried a few of different ways to get them to appear:
1.) Replace Environment.NewLine with <br> before saving to the
database.
2.) Replace Environment.NewLine with </br> before saving to the
database.
Neither of these work because ASP.NET just ends up printing out the
literal <br>, </br>.
Is there a way to replace the Environment.NewLines when the datagrid is
rendered? Alternatively, is there a specific value I should be saving
to get the Datagrid to properly render the <br>?