Solved

Datagrid - Start on a page other than page 1

Posted on 2004-10-01
1
195 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now