displaying data to a ctrl that display as it is in database - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

displaying data to a ctrl that display as it is in database

v_j_lathav_j_latha Posts: 26Member
hai all,
displaying data to a ctrl that display as it is in database without
showing scrollbars
i want to use it in datagrid

tnk u

have a good day !

bye

Comments

  • singhrohit82singhrohit82 Posts: 33Member
    You can use this method in ItemDataBound Event of the datagrid passing the staring as parameter

    public static string FormatStringForLineBreaks(string ToFormat)
    {
    return ToFormat.Replace(((char)13).ToString(), "
    ");
    }



Sign In or Register to comment.