private void radButton_ver_Click(object sender, EventArgs e) { try { if (radGridView_comprobantes.Rows.Count > 0) { if (radGridView_comprobantes.CurrentCell != null) { if (radGridView_comprobantes.CurrentCell.RowIndex != -1) { RadFormComprobante radForm = new RadFormComprobante { Sesion = Sesion, comprobante = CControl.cComprobante.Sp_listar_comprobantexidcomprobante( int.Parse(radGridView_comprobantes.Rows[radGridView_comprobantes.CurrentCell.RowIndex].Cells["idcomprobante"].Value.ToString()) ), lista_detallecomprobante = CControl.cComprobante.Sp_listar_detallecomprobantexidcomprobante( int.Parse(radGridView_comprobantes.Rows[radGridView_comprobantes.CurrentCell.RowIndex].Cells["idcomprobante"].Value.ToString()) ), radform_listadecomprobantes = this }; radForm.ShowDialog(); } } } } catch (Exception ex) { RadMessageBox.Show(ex.Message.ToString()); } }