c# - Find last row when we do paging -


i having grid in aspx page, , set "allow paging= true"

now want last row record of last page.

i tried following code 1st row record,

gridviewrow firstrow = gdvdata.rows[0]; //getting 1st row of 1st page working fine     gridviewrow lastrow = gdvdata.rows[gdvdata.rows.count - 1]; //getting last row of last page not works 

ex. grid contains 6 pages, want retrieve last record of 6th page.

the above code retrieve last record of 1st page here want last row of 6th page only.

i want disable particular column in last row of last page. idea?

if want disable particular cell in row, use rowdatabound event, in handler method, check if current page last one, , if true, cell want, , disable it.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -