How To Display And Edit Multiline In Datagrid Controls With Databinding..

Discussion in 'General Computer Support' started by har29oct, Mar 28, 2009.

  1. har29oct

    har29oct

    Joined:
    Mar 28, 2009
    Messages:
    1
    I have a gridview web control in one asp.net 2.0 page which has a field with mutliline texts need to be displayed and updated. I am using SQLDatasource to retrieve the data from my database and then use databinding to this gridview. When the mutliline texts showed on the gridview, all line breaks were gone. For example, the original texts came from the user in the database were:

    Row 1 - text text
    Row 2 - text text
    Row 2 - text text

    While it displayed in the gridview it looked like one single line without any line breaks:
    Row 1 - text textRow 2 - text textRow 3 - text text.
    please give a solution for this one.......

    And when I clicked the Edit command, these texts would show in one single line text box too.
     
    har29oct, Mar 28, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alan Browne

    Snapshot restraint - edit, edit, edit

    Alan Browne, May 5, 2005, in forum: Digital Photography
    Replies:
    24
    Views:
    1,196
    Mr. Mark
    May 10, 2005
  2. Patrick

    Snapshot restraint - edit, edit, edit

    Patrick, May 6, 2005, in forum: Digital Photography
    Replies:
    0
    Views:
    566
    Patrick
    May 6, 2005
  3. thingy
    Replies:
    0
    Views:
    329
    thingy
    Nov 6, 2006
  4. coderazor
    Replies:
    0
    Views:
    855
    coderazor
    Feb 7, 2005
  5. write2atif
    Replies:
    0
    Views:
    4,299
    write2atif
    Apr 30, 2009
Loading...

Share This Page