Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top