close

在程式碼的Page_Load事件中,加入以下語法:

正常换行:
GridView1.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");

自動换行:
GridView1.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 浮雲 的頭像
    浮雲

    missice's Blog

    浮雲 發表在 痞客邦 留言(6) 人氣()