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

SPGridView字段(單元格)換行

2022-06-13   來源: .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-2022 電腦知識網 Computer Knowledge   All rights reserved.