Solved

Datagrid - Start on a page other than page 1

Posted on 2004-10-01
1
193 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
Comment Utility
Just before you bind your datagrid add this code:

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

-tushar
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

12 Experts available now in Live!

Get 1:1 Help Now