here's try jqgrid :
<jq:jqgridcolumn datafield="id" primarykey="true" datatype="int" headertext="no" width="60" /> <jq:jqgridcolumn datafield="customerid.name" datatype="string" headertext="customer name" width="100" /> <jq:jqgridcolumn datafield="customerid.surname" searchable="false" datatype="string" headertext="customer surname width="100" />
and objectdatasource class :
public class order { private int id; private customer customerid; public customer customerid { { return customerid; } set { customerid = value; } } public int id { { return id; } set { id = value; } } }
and customer class order class. when try it's giving error :
the column datafield=customerid.name not exist in datasource. (but does)
how can solve ? thanks.
i've got answer :
public string customername { { return customerid == null ? "" : customerid.name; } }
if needs, use it.
Comments
Post a Comment