【问题标题】:how to make mvc 4 webgrid serial number continuous?如何使mvc 4 webgrid序列号连续?
【发布时间】:2015-09-24 19:54:46
【问题描述】:

如何让不同页面的行号从第一页到最后一页连续??

创建连续的行号!

【问题讨论】:

    标签: model-view-controller webgrid


    【解决方案1】:
    I had faced such problem but solved already.
    
    you have to make the index of the row number as follows;
    declare a variable int rowVal=0; 
    
    grid.Column(header: "Serial_No", format: item => rowVal = rowVal + 1 + (grid.RowsPerPage * grid.PageIndex)),
    
     - 
    
    *
    
    > (grid.RowsPerPage * grid.PageIndex) ==>  calculates the offset of the row index of the page number
    -----------------------------------
    
    -----------------------------------
    

    【讨论】:

      猜你喜欢
      • 2012-10-18
      • 2012-05-22
      • 1970-01-01
      • 2013-06-25
      • 2016-07-20
      • 1970-01-01
      • 1970-01-01
      • 2011-10-26
      • 2016-01-17
      相关资源
      最近更新 更多