Beispiel #1
0
        private void Button3_Click_1(object sender, EventArgs e)
        {
            TermekFelvitel dialogus = new TermekFelvitel();

            dialogus.ShowDialog();
            PopulateDataGridView();
        }
Beispiel #2
0
        private void Button2_Click_1(object sender, EventArgs e)
        {
            //         MessageBox.Show(dgvEmployee.CurrentCell.RowIndex.ToString());
            //string test = dgvEmployee.SelectedRows[1].Cells[1].Value.ToString();
            // string test = dgvEmployee[0, 2].Value.ToString();// = "new value";
            ///  string test2 = dgvEmployee.SelectedCells[2].ColumnIndex .ToString();
            //    MessageBox.Show(test);

            int a = dgvEmployee.CurrentCell.RowIndex;

            if (a != -1)
            {
                int    Id        = Int32.Parse(dgvEmployee[0, a].Value.ToString());
                string Azonosito = dgvEmployee[1, a].Value.ToString();
                string Nev       = dgvEmployee[2, a].Value.ToString();
                //   MessageBox.Show(dgvEmployee[3, a].Value.ToString());
                bool           Gyartando = bool.Parse(dgvEmployee[3, a].Value.ToString());
                TermekFelvitel dialogus  = new TermekFelvitel(Id, Azonosito, Nev, Gyartando);
                dialogus.ShowDialog();
            }
            PopulateDataGridView();
        }