给DataGrid添加Number列的简单方法
来源:互联网 发布:nx open api编程技术 编辑:程序博客网 时间:2024/05/16 00:55
suppose DataGrid named dgCustomize, insert the following code to the first column.
<asp:TemplateColumn HeaderText="No.">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:Label runat="server" Text='<%# dgCustomize.CurrentPageIndex*dgCustomize.PageSize+dgCustomize.Items.Count+1 %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:Label runat="server" Text='<%# dgCustomize.CurrentPageIndex*dgCustomize.PageSize+dgCustomize.Items.Count+1 %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
0 0
- 给DataGrid添加Number列的简单方法
- 给DataGrid添加Number列的简单方法
- 到目前为止给DataGrid添加Number列最简单方法
- 给datagrid的按钮列添加css
- 如何给DataGrid添加自动增长列
- 如何给DataGrid添加自动增长列
- 如何给DataGrid添加自动增长列
- 如何给DataGrid添加自动增长列
- 如何给DataGrid添加自动增长列
- 如何给DataGrid添加自动增长列
- 如何给DataGrid添加自动增长列
- flex 给DataGrid添加CheckBox全选列
- 一个简单的给DataGrid添加滚动条
- 动态添加 DataGrid 的列
- 动态添加 DataGrid 的列
- 给datatable中添加新列并赋值的方法
- 给datatable中添加新列并赋值的方法
- 实现DataGrid序号列的添加
- Android 5.0学习之创建模拟器
- Asp.NET中常用的一些优化性能的方法
- Java下RESTful WebService的实现框架介绍
- Swap Nodes in Pairs
- 解决ntp的错误 no server suitable for synchronization found
- 给DataGrid添加Number列的简单方法
- 《JAVA与模式》之代理模式
- ASP.NET中页面传值技巧
- P051第六题
- 《JAVA与模式》之享元模式
- Linux 常用命令的使用(非常实用)
- [Leetcode] 55. Jump Game
- 【转】稀疏表达:向量、矩阵与张量(上)
- 《JAVA与模式》之门面模式