Grid data source is as follow:
public class Customer
{
public string customer_id { get; set; } = "";
public string customer_name { get; set; } = "";
public List<Order> Orders { get; set; } = "";
public List<Delivery> Delivery{ get; set; } = "";
}
public class Order
{
public string order_id { get; set; } = "";
}
public class Delivery
{
public string delivery_id { get; set; } = "";
}
My design:
Master grid will present Customer record(List<Customer>), and when I click edit button, it will pop up a edit template
and edit template will include Customer's data and two sub grids(Order, Delivery).
My question is I know if I want to get string, it would be "#=customer_id#" but I don't know if I want to get List -- Order and Delivery -- to bind sub grids data source, how can I do.
Does anyone help me?