I have a grid that contains paging
I need to put Submit button at the end of paging
How to do this using c#
Loading
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.
Khargesh RajputPosted Apr 20, 2015, 2:05 AM
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();
}
Priya BmPosted Apr 20, 2015, 1:32 AM
Khargesh RajputPosted Apr 20, 2015, 1:09 AM
You can use allowpaging="true"
but you want buttons inside gridview to do some action
then
use footer template and buttons inside that