Navigate a Dataset

This exercise describes how to bind a NavigationBar to the dataset of a DataGrid:

  1. Click and drag a NavigationBar from the Toolbox to the Design Sheet, above the DataGrid you want to navigate:
  2. To bind the NavigationBar to a dataset, select Set Data Binding from the control drop-down menu:
  3. Select the name of the dataset you bound to the DataGrid:
  4. The binding is shown on the NavigationBar:

  5. Save your changes and click Run to run the form:
  6. The DataGrid and the Navigation Bar are both bound to the same dataset. Click the buttons on the navigation bar to move between rows. The DataGrid is scrolled accordingly: