private void dgvBarangay_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dgvBarangay.Columns[e.ColumnIndex].HeaderText == "Edit") { OnEdit = true; BrgyID = int.Parse(dgvBarangay.CurrentRow.Cells[2].Value.ToString()); frmAddBarangay fad = new frmAddBarangay(); fad.ShowDialog(); } }
private void btnCreateBarangay_Click(object sender, EventArgs e) { frmAddBarangay fab = new frmAddBarangay(); fab.ShowDialog(); }