.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 >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

Paging in datagridview using c#.net (in windows application)

Posted By: sravanthi     Posted Date: March 14, 2011    Points:5   Category :C#
how to display 10 records in datagridview and
how to do paging in datagridview(in windows application) using c#.net

Responses
Author: Dhiraj Ranka             
Posted Date: March 15, 2011     Points: 20   

You can follow this codeproject link

http://www.codeproject.com/KB/database/WinFormGridviewCaching.aspx

Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com
Author: Maverick             
Posted Date: March 15, 2011     Points: 20   

Hello,

Use the following property in your grid view

<asp:GridView ID="gvPayment" runat="server" AutoGenerateColumns="false" AllowPaging="true"
PagerStyle-HorizontalAlign="Center" Width="103%" AllowSorting="true" >
<PagerSettings Mode="NumericFirstLast" Position="Bottom" PageButtonCount="2" />


Thanks,
Maverick

Thanks,
Maverick


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