I have one input button .i.e. Select All and I bind the list in table grid and ipmlement pagination using pagedList. Now when I click on Select All button then I want to check all check boxes in gird only 1st page and lable should be change as DeSelect All of button, and suppose I click on 2nd page then again I click Select All button and check all check box of 2nd page. Suppose I click on previous page I want to show selected check boxes. How to implement this functionality in mvc4?