Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2006, 09:12 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nsrujan Send a message via Yahoo to nsrujan
Default DataGrid Paging

Hi all

I have tried to incorporate paging in datagrid ,it is working fine for th page except for for the last and first page,follwoing is the code i have used

private void DataGrid_PageIndexChanged(object sender,DataGridPageChangedEventArgs e)
{
DataGird.CurrentPageIndex=e.NewPageIndex
DataGrid.DataSource=DataSet;
DataGrid.DataBind();
}

 1) when i click the first page the "DataGrid_PageIndexChanged" is not firing.
 2)After clicking on the last page if i try to navigate to some other page uneven records are being(irrespective of the page being) displayed.

can anyone please suggest me how to go about this

Thanks
Srujan.N





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
Paging in DataGrid vijay_83 ASP.NET 2.0 Professional 0 September 29th, 2006 02:02 PM
datagrid-paging kvanchi ASP.NET 1.0 and 1.1 Basics 2 December 8th, 2004 04:17 AM
Paging in datagrid Renu ASP.NET 1.0 and 1.1 Basics 2 September 9th, 2004 01:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.