熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

SPGridView字段(單元格)換行

2013-11-13 10:27:27  來源: .NET編程 

  前台

  <asp:BoundField DataField=Integral HeaderText=積分 />

  後台

  dr[CompanyName] += dtRows[j][CompanyName]ToString() + \n;

  代碼

  protected void SPGridView_RowDataBound(object sender GridViewRowEventArgs e)

  {

  if (eRowRowType == DataControlRowTypeDataRow)

  {

  eRowCells[]Text = KeepPre(eRowCells[]Text);

  }

  }


From:http://tw.wingwit.com/Article/program/net/201311/13696.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.