|
|
|
|
if the cursor is one previous button should be disabled. if the cursor is 11 next button should be disabled.. plz send me code . |
|
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.
Puran KaushalPosted Jul 7, 2008, 8:15 AM
There are many ways to do this.But it will be fine if u will send the code for that
you can do custom pagging or grid paging
you just have to handle
OnPageIndexChanged="dgEmployees_PageIndexChanged"
for example u can use
follwing code
protected void dgEmployees_PageIndexChanged(object source, System.Web.UI.WebControls.DataGridPageChangedEventArgs e){
this.dgEmployees.CurrentPageIndex = e.NewPageIndex;
this.BindGrid();
}
e.NewPageIndex you can check this and enable and disable your buttons
Regards
puran
prashantPosted Jul 4, 2008, 11:28 AM
Scott LyslePosted Jul 4, 2008, 10:56 AM
If you'd include the code that have behind the control it would be a lot easier for someone to suggest how best to modify it to control the enabling and disabling of the previous and next links.