How to implement Custom gridview paging

Currently i want to accomplish custom paging in my gridview.Initially i was doing it by Default paging.In google i can get only objectdatasource control but i want it through the use of dataset.How to set a page number in the textbox field and then through dropdownlist i can go to the required page.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mortaza DoulatyCommented:
You need to define a class and use your dataset inside the class to implement custom paging.
Then you just need to use a object datasource and use your own class as the datasource for object datasource.
For more detailed information, study Pro ASP .NET 2 by Matthew McDonald, Apress.
Hi Sukeshjph,

Here are a few articles that explain (with source code) how you can implement your custom pager:

I hope this will help you.

SukeshjphAuthor Commented:
Can i not achieve my objective to set the custom page index through only onrowcreated and onrowcommand event of the gridview if i am not required to use objectdatasource control for this.

We have dataacess layers which returns us dataset.

What i think i can simply put one runtime somebody type the pagesize and from another dropdownlist (both present in the pager template )i can select which page out of available pages i want to navigate directly.

I think I understand now what you need. Please check this article that explains how you can implement such custom paging:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SukeshjphAuthor Commented:
thank you i think i have got my solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.