public ComponentForm() { InitializeComponent(); ProductRetrieval pr = new ProductRetrieval("2"); componentGrid.DataSource = pr.dt; numRecordsLabel.Text = "Number of Rows: " + componentGrid.Rows.Count.ToString(); }
public AccessoryForm() { InitializeComponent(); ProductRetrieval pr = new ProductRetrieval("4"); accessoryGrid.DataSource = pr.dt; numRecordsLabel.Text = "Number of Rows: " + accessoryGrid.Rows.Count.ToString(); }