Solved

Datagrid - Start on a page other than page 1

Posted on 2004-10-01
1
199 Views
Last Modified: 2010-04-15
I would like to be able to tell the datagrid to start on page 2 (or whatever) when i go into a page...  how can i do this?
0
Comment
Question by:Caliguian
1 Comment
 
LVL 18

Accepted Solution

by:
tusharashah earned 125 total points
ID: 12202800
Just before you bind your datagrid add this code:

------------------------------------------------------------------------------------------------
DataGrid1.CurrentPageIndex = 1; // 1 actually reffers to page 2
------------------------------------------------------------------------------------------------

-tushar
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question