public class ProductInventory
{
public long ProductInventoryId { get; set ;}
public long ProductId { get; set; }
public virtual Product Product { get; set; }
public class Product
{
public long ProductId { get; set ;}
public string Name{ get; set; }public virtual ICollection ProductInventories { get; private set; } = new ObservableCollection();
I have a ViewModel of
ProductInventory and I want to show
ProductInventory.Product.Name in a SfDataGridColumn how can I do it?
in ViewModel I can access it by Products[index].Product.Name but in Xaml I can't.