I’m relatively new to .Net 4 and I am creating my FIRST WPF application using a MDB as a backend datasource.
I designed my UI. I have a TextField (called Name), a Combobox (called Division) and a DataGrid (called dataGrid1).
The only problem I’m having is figuring out how to link my DataGrid to display data from the DataSource. and load the data in the Windows1_Loaded method.
Thanks
The five second answer is you want to set the DataGrid’s ItemsSource property to your data. You can do this in the Loaded event, but doing so in the XAML is better practice. Of course, if it’s your first application, either is fine for now.
This CodeProject entry has a ton of examples on how to use the WPF DataGrid. Hopefully they’ll be of help to you, I’ve never tried to use an MDB file before.