我有这2个课程:
public class OrderDetail
{
public int Id {get; set;}
public int OrderId {get; set;}
public virtual Product Product {get; set;}
}
public class Product
{
public int Id {get; set;}
public int Number {get; set;}
public string Description {get; set;}
}
我有一个DataGridView绑定到绑定源,而绑定源又绑定到OrderDetail。
对于“产品”列,网格当前显示文本MyAssembly.Product
。
如何设置该列以显示OrderDetail.Product.Description
?