现在的位置: 首页 > 综合 > 正文

DataGrid的自动编号列

2017年12月02日 ⁄ 综合 ⁄ 共 203字 ⁄ 字号 评论关闭
<ItemTemplate>
                <asp:Label runat="server" Text='<%# this.DataGrid2.CurrentPageIndex * this.DataGrid2.PageSize + Container.ItemIndex + 1 %>'>
                </asp:Label>
               </ItemTemplate> 

抱歉!评论已关闭.