62,042
社区成员
发帖
与我相关
我的任务
分享
<asp:GridView ID="gridList" runat="server">
<Columns>
<asp:BoundField HeaderText="a<br/>b" />
</Columns>
</asp:GridView>
private void gridList_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if(e.Row.RowType==DataControlRowType.Header)
{
e.Row.Cells[0].Text = "a<br/>b";
}
}