예제 #1
0
 private void grid_DoubleClick(object sender, EventArgs e)
 {
     if (this.gridView1.SelectedRowsCount > 0)
     {
         DataRow            dr = this.gridView1.GetDataRow(this.gridView1.GetSelectedRows()[0]);
         frmConsultaAsiento frmConsultaAsiento = new frmConsultaAsiento(dr, Convert.ToDateTime(this.dtpFechaInicial.EditValue), Convert.ToDateTime(this.dtpFechaFinal.EditValue), Convert.ToDecimal(this.txtTipoCambio.Text));
         frmConsultaAsiento.ShowDialog();
     }
 }
예제 #2
0
        private void DoRowDoubleClick(GridView view, Point pt)
        {
            GridHitInfo info = view.CalcHitInfo(pt);

            if (info.InRow || info.InRowCell)
            {
                DataRow            dr = view.GetDataRow(view.GetSelectedRows()[0]);
                frmConsultaAsiento frmConsultaAsiento = new frmConsultaAsiento(dr, Convert.ToDateTime(this.dtDesde.EditValue), Convert.ToDateTime(this.dtHasta.EditValue), Convert.ToDecimal(this.txtTasaCambio.Text));
                frmConsultaAsiento.ShowDialog();
            }
        }