I have a grid that contains paging
I need to put Submit button at the end of paging
How to do this using c#
How to add submit button for paging grid
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 19, 2015, 10:05 PM EDT
protected void grdSearch_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
grdSearch.PageIndex = e.NewPageIndex;
if (grdSearch.PageIndex == 12)
{
grdSearch.ShowFooter = true;
// and in footer template you can add a button and find controlid of button here and codeyour //function to submit
// to test this you can add any text in footer , it will work
}
fncBindGrid();
}
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 19, 2015, 9:09 PM EDT
You can use allowpaging="true"
but you want buttons inside gridview to do some action
then
use footer template and buttons inside that
Priya Bm33 reputationPosted Apr 19, 2015, 9:32 PM EDT