private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Detalles_Venta dc = new Detalles_Venta(); string aux = Convert.ToString(dataGridView1.CurrentRow.Cells[0].Value); dc.txtVenta.Text = aux; dc.Show(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Detalles_Venta dc = new Detalles_Venta(); int aux = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value); lblID.Text = Convert.ToString(aux); c.obtener_venta(aux, tablaCuentas); }