RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:9:30-18:00
你可能遇到了下面的问题
关闭右侧工具栏
在datagrid可分页的程序中,序号是可递增的实现
  • 作者:zhaozj
  • 发表时间:2020-12-23 11:02
  • 来源:未知

<asp:datagrid id="DgPayed" runat="server" BorderStyle="None" BackColor="White"   BorderColor="#CCCCCC" Width="736px" AutoGenerateColumns="False" BorderWidth="150px" CellPadding="3" AllowPaging="True" ShowHeader="True" PageSize="15" OnPageIndexChanged="DgPayed_PageIndexChanged">

<asp:TemplateColumn HeaderText="序号">

          <ItemTemplate>            <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%>          </ItemTemplate>    </asp:TemplateColumn>

</sp:datagrid> <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%> <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%> <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%> <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%> <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%> <%# Container.ItemIndex + 1+DgPayed.CurrentPageIndex*DgPayed.PageSize%>