paging in datagridview in windows application...

Posted by Gopal_nivas under C# on 4/29/2010 | Views : 8966 | Status : [Member] | Replies : 1
hi ..

i want to set paging in datagridview in windows application..

need ur suggestions(in C#) with examples ...

regards
gopal.s




Responses

Posted by: Naveenmanam on: 4/29/2010 [Member] Starter

Up
0
Down
private void goFirst()

{
this.mintCurrentPage = 0;

loadPage();
}

private void goPrevious()
{
if (this.mintCurrentPage == this.mintPageCount)
this.mintCurrentPage = this.mintPageCount - 1;

this.mintCurrentPage--;

if (this.mintCurrentPage < 1)
this.mintCurrentPage = 0;

loadPage();
}

private void goNext()
{
this.mintCurrentPage++;

if (this.mintCurrentPage > (this.mintPageCount - 1))
this.mintCurrentPage = this.mintPageCount - 1;

loadPage();
}

private void goLast()
{
this.mintCurrentPage = this.mintPageCount - 1;

loadPage();
}



see this link:http://www.codeproject.com/KB/grid/DataGridPaging.aspx

NaveenKumar

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

Login to post response