i want to know this for window application

Posted by Subhadip under C# on 1/31/2011 | Points: 10 | Views : 5351 | Status : [Member] | Replies : 5
suppose i have display the record from data base to grid view i have 10 records now
how to display the first,next,last,previous record in grid view for window application
WHAT IS THE CODE FOR PAGING IN WINDOW FORM ?????




Responses

Posted by: Karthikanbarasan on: 1/31/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this link

http://www.codeproject.com/KB/miscctrl/Gridview_Pagination.aspx

Thanks
Karthik
www.f5Debug.net

Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhuk on: 2/1/2011 [Member] Starter | Points: 25

Up
0
Down
Also check which suits your requirement.
http://www.dotnetspider.com/resources/38423-Paging-for-DataGridView-Control.aspx

Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tripati.patro on: 2/18/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

BindingNavigator is a control available in windows application. This control exactly matches your requirement.

Steps:
1) Drag and Drop a BindingNavigator and DataGridView from ToolBox.
2) Use BindingSource control for binding not dataset. (say name: bsTestData)
3) Now give use this BindingSource for both BindingNavigator and DataGridView.
4) As same BindingSource used the binding navigator control will work as navigator the corresponding grid.

BindingNavigator.BindingSource = bsTestData;

DataGridView1.DataSource = bsTestData;


B.Tripati Patro
Oracle Certified Associate

Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/20/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Refer to this link for step by step

http://support.microsoft.com/kb/305271


Thanks and Regards
Madhu

Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/20/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
This is one more link you can check

http://support.microsoft.com/kb/307710

Thanks and Regards
Madhu

Subhadip, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response