crazyitguy
IS-IT--Management
is it true that gridview/objectdatasources can not update/delete complex custom business objects?
like:
I am binding a gridview to an objectdatasource which itself binds to a list<Order>. When I try to update, _orderid and _somestring are filled properly, but _customer is empty even though the user selects the customer in the gridview when updating.
thanks
like:
Code:
public class Order
{
private int _orderid;
private string _somestring;
private Customer _customer;
public Order()
{
_orderid = 0;
_somestring = "";
customer = new Customer ();
}
//...get/set methods
}
I am binding a gridview to an objectdatasource which itself binds to a list<Order>. When I try to update, _orderid and _somestring are filled properly, but _customer is empty even though the user selects the customer in the gridview when updating.
thanks