Can someone give me a hand with this please.
i have 2 classes, Foo and Moo
public class Foo
{
public int Id { get; set; }
public int price { get; set; }
public String code { get; set; }
public Moo moo { get; set; }
public Foo()
{
}
}
public class MOO
{
public int Id { get; set; }
public String firstname { get; set; }
public String surname { get; set; }
public MOO()
{
}
}
I have a list of FOOs now
List<Foo> foolist
I can make it a datasource for my jqgrid. and do columns for price and code, but I cant use the sub fields
I would love to be able to do something like this
<trirand:JQGridColumn DataField="moo.firstname" Searchable="true" />
any ideas? Thanks!
Basically, you can change your return list. You create a new object. Example: InfoFoo. you set its property while using Foo and Moo classes. Then return this class, List.
for setting InfoFoo properties,