private void cmdEDIT_Click(object sender, EventArgs e) { if (dataGridView1.SelectedCells.Count > 0) { Guid rowID = (Guid)dataGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value; Penjualan.frmKonsinyasiUpdate ifrmChild = new Penjualan.frmKonsinyasiUpdate(this, rowID); ifrmChild.ShowDialog(); } else { MessageBox.Show(Messages.Error.RowNotSelected); } }
private void cmdADD_Click(object sender, EventArgs e) { Penjualan.frmKonsinyasiUpdate ifrmChild = new Penjualan.frmKonsinyasiUpdate(this); ifrmChild.ShowDialog(); }