|
|
|
|
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Scott LysleRank #49 · 31K reputationPosted Jul 4, 2008, 6:56 AM EDT
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.
prashant4 reputationPosted Jul 4, 2008, 7:28 AM EDT
Puran KaushalRank #2,456 · 573 reputationPosted Jul 7, 2008, 4:15 AM EDT
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