Exemplo n.º 1
0
 private void DgvBusquedaProveedor_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     Operaciones.frmDetalleCompra frm = Owner as Operaciones.frmDetalleCompra;
     frm.txtIdProveedor.Text   = DgvBusquedaProveedor.CurrentRow.Cells[0].Value.ToString();
     frm.TxtCodigoCliente.Text = DgvBusquedaProveedor.CurrentRow.Cells[1].Value.ToString();
     frm.TxtNombreCliente.Text = DgvBusquedaProveedor.CurrentRow.Cells[2].Value.ToString();
     this.Close();
 }
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     Operaciones.frmDetalleCompra frm = Owner as Operaciones.frmDetalleCompra;
     frm.TxtIdEmpleado.Text     = dataGridView1.CurrentRow.Cells[0].Value.ToString();
     frm.TxtCodgoEmpleado.Text  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
     frm.TxtNombreEmpleado.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
     this.Close();
 }
Exemplo n.º 3
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     Operaciones.frmDetalleCompra frm = Owner as Operaciones.frmDetalleCompra;
     frm.TxtIdProducto.Text      = dataGridView1.CurrentRow.Cells[0].Value.ToString();
     frm.TxtCodigoProducto.Text  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
     frm.TxtDescripProducto.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString();
     frm.TxtPrecioVenta.Text     = dataGridView1.CurrentRow.Cells[3].Value.ToString();
     this.Close();
 }