[Solved] Value’s Not Appearing In Datagrid? [closed]


Ahhh, At last I found solution to it.

instead of declaring properties private they should be public:-

  private string ProductName { get; set; }
private string ProductPrice { get; set; }
private string ProductUnit { get; set; }
private string ProductStock { get; set; }

Correction:-

  public string ProductName { get; set; }
public string ProductPrice { get; set; }
public string ProductUnit { get; set; }
public string ProductStock { get; set; }

solved Value’s Not Appearing In Datagrid? [closed]