是否可以使“标题文本”显示为2行 [英] Is it possible to make a 'header text' to appear in 2 lines

查看:77
本文介绍了是否可以使“标题文本”显示为2行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在两行中显示标题文字'总计(包括快递费用)',如上面的总计和/或第二行中的
(包括快递费用) 。下面是我的代码:



 <   asp:TemplateField     HeaderText   = 总计(包括快递费用)         >  
< ItemTemplate >
< asp:TextBox ID = TBTotalValue < span class =code-attribute> runat = server ReadOnly = true < span class =code-attribute> > < / asp:TextBox >
< < span class =code-leadattribute> / ItemTemplate >
< / asp:TemplateField >

解决方案

 <   asp:TemplateField     HeaderText   = 总计< / br>(包括快递费用)         >  
< ItemTemplate >
< asp:TextBox ID = TBTotalValue runat = server ReadOnly = true > < / asp:TextBox >
< / ItemTemplate >
< / asp:TemplateField >


这可能对你有所帮助..



http://forums.asp.net/t/1545021.aspx [ ^ ]



setting-gridview-header-text-to-wrap-as-directed [ ^ ]


看看这些article



http://blogs.msdn.com/b/mattdotson/archive/2006/03/01/real-world-gridview-two-headed-grouping-gridviews.aspx [ ^ ]



http://www.dotnettwitter.com/2010/12/how-to-create-multiple-row-header-and.html [ ^

I want to make appear the header text 'Total (includes courier cost)' in 2 lines like,
in top line as 'Total' and in 2nd line as (includes courier cost)'. Hereunder is my code:

<asp:TemplateField HeaderText="Total (includes courier cost)"    >
           <ItemTemplate>
            <asp:TextBox ID="TBTotalValue" runat="server" ReadOnly="true" ></asp:TextBox>
           </ItemTemplate>
       </asp:TemplateField>

解决方案

<asp:TemplateField HeaderText="Total </br>(includes courier cost)"    >
           <ItemTemplate>
            <asp:TextBox ID="TBTotalValue" runat="server" ReadOnly="true" ></asp:TextBox>
           </ItemTemplate>
       </asp:TemplateField>


This might help you..

http://forums.asp.net/t/1545021.aspx[^]

setting-gridview-header-text-to-wrap-as-directed[^]


have a look at these article

http://blogs.msdn.com/b/mattdotson/archive/2006/03/01/real-world-gridview-two-headed-grouping-gridviews.aspx[^]

http://www.dotnettwitter.com/2010/12/how-to-create-multiple-row-header-and.html[^]


这篇关于是否可以使“标题文本”显示为2行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆