Gridview with Paging

Posted by Sandeepmhatre under ASP.NET on 7/15/2013 | Points: 10 | Views : 1829 | Status : [Member] | Replies : 3
My requirement:
On page load i bind say 50 records to grid, with one editable textbox column.
my gridview is enabled with paging with page size 10 records per page
my page also include save button.
when i save first 10 records to the database, saved records should not display to user.
only next 40 records should be binded to gridview

Sandeep M,
Software Developer
Follow me on :
http://sandeepmhatre.blogspot.in



Responses

Posted by: Rimi1289 on: 7/16/2013 [Member] Starter | Points: 25

Up
0
Down
I am sure this is what you are looking for. Gridview paging with group total and grand total at the footer of each page.

http://www.encodedna.com/2013/06/sum-of-gridview-column-in-footer.htm

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandeepmhatre on: 7/18/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for your reply,

But my requirement is quite different..
when i save first 10 records in database then those records should not display to users to edit again.
if i show those records again, it is possible to save multiple entries for the same records.


Sandeep M,
Software Developer
Follow me on :
http://sandeepmhatre.blogspot.in

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Phagu007 on: 7/18/2013 [Member] Starter | Points: 25

Up
0
Down
Hi You can use this code for display your record in Gridview with paging
<i>You are viewing page
<%=RecordsGridView.PageIndex + 1%>
of
<%=RecordGridView.PageCount%>
</i>
Or Try this
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
bindGridView();
}

Sandeepmhatre, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response