Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Star
12255 Points
1841 Posts
May 18, 2012 01:06 AM|LINK
Try following
@(n.GetType().GetProperty("IdProduction").GetValue(n,null) +" -" + n.GetType().GetProperty("Image").GetValue(n,null))
Check another example to access anonymous type property in gridview sorting
http://techbrij.com/926/anonymous-type-linq-gridview-sorting-asp-net
urenjoy
Star
12255 Points
1841 Posts
Re: Anonymous types in LINQ Select New. TROUBLE.
May 18, 2012 01:06 AM|LINK
Try following
@(n.GetType().GetProperty("IdProduction").GetValue(n,null) +" -" + n.GetType().GetProperty("Image").GetValue(n,null))Check another example to access anonymous type property in gridview sorting
http://techbrij.com/926/anonymous-type-linq-gridview-sorting-asp-net