private void Insert_Click(object sender, EventArgs e) { dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true; RowData rd = new RowData(dataGridView1); InsertProcs.insertRow(rd); GetDatabasedata.getCustomers(dataGridView1); }
public Products() { InitializeComponent(); GetDatabasedata.getProducts(dataGridView1); }
private void Delete_Click(object sender, EventArgs e) { dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].Selected = true; DeleteProcs.deleteRow(dataGridView1); GetDatabasedata.getCustomers(dataGridView1); }
private void RefreshCust_Click(object sender, EventArgs e) { GetDatabasedata.getCustomers(dataGridView1); }
public Customers() { InitializeComponent(); GetDatabasedata.getCustomers(dataGridView1); }