Beispiel #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            MessageBox.Show("Función aun no establecida", "Aviso");
            return;

            try
            {
                idfacturaeditar = dataGridView1.CurrentRow.Cells[0].Value.ToString();
                Form f = new EditarFactura();
                f.Show();
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
        void BuscarPorCódigo()
        {
            string idfactura = tbcodigof.Text;

            dt = oper.ExtraeData("SELECT * FROM factura WHERE id = '" + idfactura + "';");
            dataGridView1update.DataSource = dt;
            dataGridView1update.Refresh();
            RellenarTablas();

            return;

            try
            {
                idfacturaeditar = idfactura;
                Form f = new EditarFactura();
                f.Show();
            }
            catch (Exception)
            {
            }
        }