Hi friends
I have a datable in mainwindow.xaml window_loaded event . I would like to pass this data table from this window
to another WPF window searchwindow.xaml which opens on a button click.
Also here on the searchwindow.xaml , i would like query this datatable and them bind the results to a gridview. Please guide me on this..Thank you
akpaga akpagaPosted May 6, 2013, 3:27 PM
Jignesh TrivediPosted May 5, 2013, 11:30 PM
hi,
you can pass your datatable to other form using dataContext property or a traditional way mean pass the data object with in contructor.
please refer
http://www.ikriv.com/blog/?p=751
http://www.codeproject.com/Articles/137288/WPF-Passing-Data-to-Sub-Views-via-DataContext-Caus
hope this will help you.