This is a migrated thread and some comments may be shown as answers.

Binding Master Detail

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 13 Jan 2009, 03:28 PM
Hi


Given that my dataContext is bound to a singluar object (Client, which is working fine) what is the binding syntaxt to bind the Client's Orders to the GridView

Thanks


P

1 Answer, 1 is accepted

Sort by
0
Paul Gallen
Top achievements
Rank 1
answered on 13 Jan 2009, 03:52 PM
Ok

I have a way of achieving this. The DataContext is on the parent element... a Grid Layout Element..

ItemsSource

="{Binding Path=DataContext.Orders, ElementName=GridMain,.......

Is this correct/best practice???


P

 

 

 

 

 

Tags
GridView
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Paul Gallen
Top achievements
Rank 1
Share this question
or