datagrid GridView Repeater 绑定 序号 逐一递增的实现

两种情况:
1.不分页自动添加序号
<%# Container.ItemIndex + 1%>

2.分页自动添加序号
<%# DataGrid.CurrentPageIndex * DataGrid.PageSize + Container.ItemIndex + 1%>
 
3. 直接取绑定对象
<%#   Container.DataItem%>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-02-19
  • 2021-10-13
相关资源
相似解决方案