.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> Windows Application >> Post New QuestionBookmark and Share Subscribe to Forum

Pagination in DataGrid View

Posted By: Suderson Sarathy     Posted Date: November 19, 2010    Points:2   Category :Windows Application
Hello. I've a Lakk record in my dataset. I'm showing only the Emails and the status column.

I want to create a pagination for the grid.

Please some one help

Responses
Author: Asha.MP             
Posted Date: November 19, 2010     Points: 5   

Hi..

In the gridview there are some properties like paging and sorting, set paging prperty to true, and you can set the page size alose means number of rows per page by using pagesize. make use of those properties.

Thanks and Regards,
Asha.mp
Author: Dhilip.R             
Posted Date: November 19, 2010     Points: 5   

Hi,
Try This Code.


protected void GridView1(object sender, GridViewPageEventArgs e)
{
#region PageIndex Changing
GridView1.PageIndex = e.NewPageIndex;
GridView1.EditIndex = -1;
}

Author: Suderson Sarathy             
Posted Date: November 19, 2010     Points: 5   

Thanks for both of you on replying to my question.

But I'm mentioning DataGridView of Windows Application and not about GridView of Web Appl.

Am I posting it in the correct forum??

I hop, I'm

Author: Dhilip.R             
Posted Date: November 19, 2010     Points: 5   

Hi,

See the link hope this will help you

http://www.codeproject.com/KB/grid/DataGridView_manipulation.aspx

Author: Mallikarjuna Chigicherla             
Posted Date: November 22, 2010     Points: 5   

//Before coding Change the propertieds of Gridview
PageIndex = true;

protected void GridView1(object sender, GridViewPageEventArgs e)
{

GridView1.PageIndex = e.NewPageIndex;
GridView1.EditIndex = -1;
//After this we can add dataset to datasource
Gridview.Datasource=ds;
}

Thanks & Regards,
Mallikarjuna Chigicherla
Author: krishana singh             
Posted Date: December 04, 2010     Points: 5   

protected void GridView1(object sender, GridViewPageEventArgs e)
{
#region PageIndex Changing
GridView1.PageIndex = e.NewPageIndex;
GridView1.EditIndex = -1;
}

Author: krishana singh             
Posted Date: December 11, 2010     Points: 5   

pagination in datagridview :-

1. datagridview task open
2. checked enable column recording

how to open task

drag control on form then show right side open mark (symbol) click then open popup




Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend