private void buttonVoucherView_Click(object sender, EventArgs e) { var view = new CrudeFinancialVoucherEdit(); view.MdiParent = this.MdiParent; view.ShowAsEdit(( Guid )dataGridViewVoucherSearchWithRemainingAmount.CurrentRow.Cells["FinancialVoucherId"].Value); }
// shows the detailed version of the selected grid row, in edit modus // links: // docLink: http://sql2x.org/documentationLink/c778f8fe-1b09-4755-891f-f9d3126d1b85 private void buttonCrudeFinancialVoucherEdit_Click(object sender, EventArgs e) { try { var editForm = new CrudeFinancialVoucherEdit(); editForm.MdiParent = this.MdiParent; editForm.ShowAsEdit((System.Guid)dataGridViewCrudeFinancialVoucher.CurrentRow.Cells["FinancialVoucherId"].Value); } catch (Exception ex) { if (ex == null) { } else { System.Diagnostics.Debugger.Break(); } } }