标题:datagrid截取字符串
取消只看楼主
董晓云
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2010-4-5
结帖率:42.86%
已结贴  问题点数:6 回复次数:0 
datagrid截取字符串
datagrid怎么截取标题只显示8个字,后面用“...”代替
我的前台代码  
<asp:DataGrid ID="DataGrid2" runat="server" AutoGenerateColumns="False"
                                        BorderStyle="None" BorderWidth="0px" CellPadding="0" ShowHeader="False">
                                         <Column>
                                            <asp:HyperLinkColumn Text="&lt;img src=image/dir_pointer_g.gif border=0&gt;"></asp:HyperLinkColumn>
                                          
                                            <asp:HyperLinkColumn Target="main" DataNavigateUrlField="mid" DataNavigateUrlFormatString="login.aspx?id={0}" DataTextField= '<%# FormatStringl(DataBinder.Eval(Container.DataItem,"url").ToString())%>' >
                                                    <HeaderStyle HorizontalAlign="Center" Width="220px"></HeaderStyle>
                                                   
                                                </asp:HyperLinkColumn>
                                        <Column>
</asp:DataGrid>

如何显示在HyperLinkColumn中啊?高手帮忙!!
搜索更多相关主题的帖子: datagrid 字符 
2010-09-23 21:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-321179-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.719798 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved