模板列:

  <asp:TemplateField FooterText="资产配置" HeaderText="资产配置" SortExpression="cAsset_Set">
                <ItemStyle HorizontalAlign="Center" />
                 <HeaderStyle HorizontalAlign="Center" Width="15%" />
                 <ItemTemplate>
                                                <%# Eval("cAsset_Set").ToString().Length>15?Eval("cAsset_Set").ToString().Substring(0,20):Eval("cAsset_Set").ToString()%>
                </ItemTemplate>
 </asp:TemplateField>

posted on 2008-03-07 10:58  星答  阅读(598)  评论(1编辑  收藏  举报