Home
Manage Your Code
Snippet: Data Binding - Previous and Next Record (C#)
Title: Data Binding - Previous and Next Record Language: C#
Description: change the selected record in the "bound source" Views: 107
Author: Robert Dunbar Date Added: 4/3/2008
Copy Code  
1        private void btnPrev_Click(object sender, EventArgs e)
2        {
3            customerBindingSource.Position--;
4        }
5
6        private void btnNext_Click(object sender, EventArgs e)
7        {
8            customerBindingSource.Position++;
9        }