private void btnNew_Click(object sender, EventArgs e)
 {
     frmDonationRecord frm = new frmDonationRecord();
     this.Hide();
     frm.ShowDialog(this);
     this.Show();
     this.BringToFront();
     populateGrid();
     frm.Dispose();
 }
 public override void dgvData_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         long lngPKID = long.Parse(dgvData["DonationID", dgvData.CurrentCell.RowIndex].Value.ToString());
         frmDonationRecord frm = new frmDonationRecord(lngPKID);
         this.Hide();
         frm.ShowDialog(this);
         this.Show();
         this.BringToFront();
         frm.Dispose();
     }
     catch (FormatException)
     {
         frmDonationRecord frm = new frmDonationRecord();
         this.Hide();
         frm.ShowDialog(this);
         this.Show();
         this.BringToFront();
         frm.Dispose();
     }
     populateGrid();
 }