> I have a bound field in a DetailsView control that displays free form
> description type data from my SQL database table (typical data is a
[quoted text clipped - 13 lines]
> <asp:BoundField DataField="Description" HeaderText="Description"
> SortExpression="Description" />
instead of BoundField use a TemplateField
<asp:TemplateField>
<ItemTemplate>
<%# Replace(Container.DataItem("Description"), vbCrLf, "<br>") %>
</ItemTemplate>
</asp:TemplateField>
and in C# use
Replace("\n", "<br>");
Bazza Formez - 06 Aug 2007 21:53 GMT
> On Aug 1, 10:57 pm,BazzaFormez<bruce_for...@clear.net.nz> wrote:
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -
Thank you very much Alexey!