1

Hi i have a gridview contains hundred of records, it is having paging, every page have size 10. now i want to find the first & last row index numbers of the gridview in each paging event? any suggestions?

software
  • 728
  • 6
  • 18
  • 39

1 Answers1

1

Wouldn't page number times page size give you the last index on the page? MyGrid.PageIndex + 1 * MyGrid.PageSize For the first on the page you could just subtract page size from the last index that you calculated

Michael
  • 1,849
  • 18
  • 38