Current location: Hot Scripts Forums » Programming Languages » Windows .NET Programming » Help - Datagrid problem with "linefeed"/carriage return


Help - Datagrid problem with "linefeed"/carriage return

Reply
  #1 (permalink)  
Old 02-22-05, 04:53 AM
zissorbobo zissorbobo is offline
New Member
 
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Help - Datagrid problem with "linefeed"/carriage return

Hello friends!
I'm having a problem with a datagrid bound to a dataset in ASP.Net with C#

In the database I have entered some text like with an carriage return. But the datagrid trims away the carriage returns...

I would like the datagrid to show these three records like this:

Column1......... Column2............ Column3
-------------------------------------------------
...1..................Test1.1........... This is test one
-------------------------------------------------
...2............... Test2.1............. This is test two
....................Test2.2....................... ................
....................Test2.3....................... ................
-------------------------------------------------
...3 ............. Test 3.1.......................................
-------------------------------------------------
Does anywon know the solution for this?

I have tried to put into the database *n* as a seperator, and in the Datagrid1.ItemDataBound I'v replacing the *n* with \n or \r\n, but whats happens is that for item 2 its like this: Test2.1Test2.2Test2.3 but I want this to be on seperate lines but in the same row of course.

(I'v tried to turn on the .Wrap = true for items also... )

Please let me know if anyone have a solution for this.

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-02-05, 09:21 AM
joerage joerage is offline
New Member
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Same problem here. Ever found out the solution?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM
calendar working until months changed bitesize JavaScript 1 01-13-04 01:50 PM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM
New Web Host, New Problem! justchat PHP 2 09-29-03 02:39 PM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM


All times are GMT -5. The time now is 02:15 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.