32.    GridView模版列里可以进行类似如下的操作
<asp:TemplateField HeaderText="项目名称">
            <ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%#Eval("ProjectName").ToString().Length>5 ?Eval("ProjectName").ToString().Substring(0,5)+"..." : Eval("ProjectName") %>' ToolTip='<%# Eval("ProjectName") %>'></asp:Label>
    </ItemTemplate>
</asp:TemplateField>

相关文章:

  • 2021-08-14
  • 2021-06-22
  • 2022-12-23
  • 2021-08-11
  • 2021-07-14
  • 2021-08-19
  • 2021-10-19
猜你喜欢
  • 2021-09-20
  • 2021-10-23
  • 2022-12-23
  • 2022-02-09
  • 2021-08-10
  • 2022-12-23
  • 2021-08-08
相关资源
相似解决方案