protected virtual void EditPendienteAction() { if (Pendientes_DGW.CurrentRow == null) { return; } OutputInvoiceInfo factura = Pendientes_DGW.CurrentRow.DataBoundItem as OutputInvoiceInfo; InvoiceEditForm form = new InvoiceEditForm(factura.Oid, this); form.ShowDialog(this); UpdateFacturasPendientes(); }