Silverlight dataGrid binding with ria Service doesn' work

Posted by Abdulrhman on Stack Overflow See other posts from Stack Overflow or by Abdulrhman
Published on 2010-05-29T09:10:48Z Indexed on 2010/05/29 9:12 UTC
Read the original article Hit count: 241

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 ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight