Silverlight datagrid don't show any data with anonymous query RIA services
Posted
by user289082
on Stack Overflow
See other posts from Stack Overflow
or by user289082
Published on 2010-03-10T15:01:13Z
Indexed on
2010/03/13
7:35 UTC
Read the original article
Hit count: 292
Hi all! I have an anonymous linq query that I bind to a datagrid, when I debug it brings alright the data but it doesn't show in the datagrid, I suspect that the request to RIA services isn't completed before I bound it to the datagrid. I could use the LoadOperation<>() Completed event. But it only works with Defined Entities so how can I do that? For reference here is the last post: http://stackoverflow.com/questions/2403903/linq-query-null-reference-exception Here is the query:
var bPermisos = from b in ruc.Permisos
where b.IdUsuario == SelCu.Id
select new {
Id=b.Id,
IdUsuario=b.IdUsuario,
IdPerfil=b.IdPerfil,
Estatus=b.Estatus,
Perfil=b.Cat_Perfil.Nombre,
Sis=b.Cat_Perfil.Cat_Sistema.Nombre
};
I'm a totally newbie sorry if is a very simple question.
Thanks!!
© Stack Overflow or respective owner