Exemplo n.º 1
0
        private void ConsGruArt_Click(object sender, EventArgs e)
        {
            ConsGruArt obj = new ConsGruArt();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                GruArt.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
            }
        }
Exemplo n.º 2
0
        public override void Consultar()
        {
            ConsGruArt obj = new ConsGruArt();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                codigo.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
                codigo.Focus();
                SendKeys.Send("{TAB}");
            }
        }