I have an object, called order, like this
public class Order
{
public int OrderId {get; set;}
public OrderLine orderLine {get; set;}
}
public class OrderLine
{
public int OrderId {get; set;}
public string product {get; set;}
}
In my grid, I want to show the OrderId and the product from the OrderLine. I thought it would be as simple as
<GridColumn Field=@nameof(Order.orderLine.product) />
but that just comes up empty. What do I need