Paging issues in Gridview???????????

Posted by Sabarimahesh under ASP.NET on 3/23/2012 | Points: 10 | Views : 2645 | Status : [Member] | Replies : 7
I'm stuck with a paging issue in dynamic gridview. I hope someone here can help me get a fix.

I've textboxes on the dynamically generated grid which can search for a keyword entered.

The sql query fetches desired result and the first page(paging given as 10 records per page) is displayed fairly.

On selecting any other page(2/3/4...) the query fetches data which is set during the pageload!

Simply, paging is not working when data is searched via the textbox inside the dynamic grid.

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M



Responses

Posted by: Balajikcp8 on: 3/23/2012 [Member] Starter | Points: 25

Up
0
Down
This may help

gridView_PageIndexChanging(.......)
{
gridView.PageIndex=e.NewPageIndex

gridView.DataBound()
}

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

Posted by: Patel28rajendra on: 3/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi


bind grid view in (!Ispostback) of page load

Thanks



R D Patel

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

Posted by: Patel28rajendra on: 3/24/2012 [Member] Starter | Points: 25

Up
0
Down
Hi


Sabari Mahesh P M

Is it work or not?

R D Patel

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

Posted by: Sksamantaray on: 3/24/2012 [Member] Silver | Points: 25

Up
0
Down
Hi sabari Mahesh,
A nice article by SheoNarayan,
Try this:
http://www.dotnetfunda.com/articles/article1599-how-to-do-pagination-for-the-gridview-data-.aspx

Thanks,
Sanjay

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

Posted by: Sabarimahesh on: 3/26/2012 [Member] Bronze | Points: 25

Up
0
Down
to Patel28rajendra
when the Paging having 1 2 3 pages...


if they are 50 records

The 1st pages loaded by order as per query..10

Then the 2nd page loaded by next 10..

3rd page loaded by 1st ten


Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

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

Posted by: Patel28rajendra on: 3/26/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

Is you paging Dynamically ?

R D Patel

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

Posted by: Sabarimahesh on: 3/27/2012 [Member] Bronze | Points: 25

Up
0
Down
Patel28rajendra


ssssssssssss

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

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

Login to post response