Silverlight dataGrid binding with ria Service doesn' work
- by Abdulrhman
hi every one
i'm new to Silverlight and it's totally driving me crazy !!
i'm using SL4 and trying to bind datagrid with a Domain Service Query:
what i did exactly is i generate an ado.net entity model from my database,
then create a domain Service class from this model.
then in my page i put Datagrid & button.
in the click event for this button i write this code:
RRDomainContext rr = new RRDomainContext();
this.dataGrid1.ItemsSource = rr.Rooms;
this.rr.Load(this.rr.GetRoomsQuery());
when this method executed the nothing changed at the datagrid.
can anyone help me with this ?