How to break line in a string field

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have a field of varchar(20), the content of it may be "Dog,Lion,Phoenix"
When it the field display in a cell of DataGrid, it will display in a line,
I want to break line at each comma, so I change the content of the filed to
"Dog<br>Lion<br>,Phoenix" ,
But it still display in a line.
How can I break line in a string field?
 
And this pertains to ADO how?

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
Hello ad
I think you should write string.replace in item databound event of data
grid.

regards,
bhawin13
 
Back
Top