PC Review


Reply
Thread Tools Rate Thread

How to break line in a string field

 
 
ad
Guest
Posts: n/a
 
      2nd Jul 2005
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?


 
Reply With Quote
 
 
 
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      2nd Jul 2005
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.
__________________________________

"ad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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?
>
>



 
Reply With Quote
 
bhawin13@indiatimes.com
Guest
Posts: n/a
 
      5th Jul 2005
Hello ad
I think you should write string.replace in item databound event of data
grid.

regards,
bhawin13

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line break within a field =?Utf-8?B?QWxiZXJ0IEthZWdp?= Microsoft Excel Worksheet Functions 1 21st Nov 2007 03:04 PM
Inserting NewLine (line break) into resource string Penelope Dramas Microsoft VB .NET 1 21st Mar 2007 10:30 PM
Can I cause a line feed break at a comma in a text string, in a re =?Utf-8?B?cmFscGh3?= Microsoft Access 1 21st Feb 2007 05:28 PM
Add Line break to string for Excel (using c#) ladyhawke Microsoft Excel Programming 5 18th Sep 2006 01:27 PM
Help needed: How to reserve line break in a string =?Utf-8?B?Z3I=?= Microsoft C# .NET 1 28th Feb 2004 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:52 AM.