Ejemplo n.º 1
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     int i = this.dataGridView1.CurrentRow.Index;
     string str = dataGridView1.Rows[i].Cells[0].Value.ToString();
     OpenDB();
     SqlCommand comd2 = new SqlCommand("exec  insertId '" + str + "'", sqlConn);
     comd2.ExecuteNonQuery();
     CloseDB();
     otherChange mychange = new otherChange();
     //mychange.Owner = this;
     //this.Hide();
     mychange.ShowDialog();
 }
Ejemplo n.º 2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int    i   = this.dataGridView1.CurrentRow.Index;
            string str = dataGridView1.Rows[i].Cells[0].Value.ToString();

            OpenDB();
            SqlCommand comd2 = new SqlCommand("exec  insertId '" + str + "'", sqlConn);

            comd2.ExecuteNonQuery();
            CloseDB();
            otherChange mychange = new otherChange();

            //mychange.Owner = this;
            //this.Hide();
            mychange.ShowDialog();
        }