Question about gridview header checkbox on pageindex change
How to check the header checkbox in gridview on pageindex change and enable/disable the button (which exist outside the gridview) accordingly? Please mention the code also
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted May 4, 2012, 1:06 AM
document.getElementByID('btnEdit').disabled = true; //disable the button
document.getElementByID('btnEdit').disabled = false; //enable the button
In server side,
btnEdit.Enabled = true;
and
btnEdit.Enabled = false;
While page index, the selection has to be stored in the memory or some hidden control then it needs to checked.