Skip to main content
A newer version of this page is available. .

How to: Bind a Grid to an MS Access Database

This example shows how to connect to the NorthWind database and display data from the Customers table.

using System.Windows;

namespace DXGrid_BindingToMSAccessDb {
    public partial class Window1 : Window {
        public Window1() {
            InitializeComponent();
            grid.ItemsSource = 
                new nwindCustomerDataSetTableAdapters.CustomersTableAdapter().GetData();
        }
    }
}