TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
akpaga akpaga
NA
7
5k
Databind a dataContext on another Xaml window?
May 6 2013 3:31 PM
In my main window.xaml i have a button which opens searchwindow.xaml
private void Search_Click(object sender, RoutedEventArgs e)
{
if (dt.Rows.Count > 0)
{
new SearchWindow(){DataContext = dt.DefaultView}.Show();
}
}
In the searchWindow.Xaml is there is button 'BIND' and a datagrid . I want to databind the data grid with the dat context table that has been sent from MainWindow.xaml on clicking the BIND button...How can i do it...Thank you
Reply
Answers (
1
)
Data table from one Xaml window to another
dataview from two dataset tables