예제 #1
0
        private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            InfoVentas inf = new InfoVentas();

            inf.txtId.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();


            //try
            //{
            //    List<Form> OpenForms = new List<Form>();
            //    InfoVentas inf = new InfoVentas();

            //    foreach (Form frm in Application.OpenForms)
            //    {
            //        if (cmdReporte.Text.Equals("Ventas"))
            //        {
            //            inf = (InfoVentas)frm;

            //            inf.txtId.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();

            //        }
            //    }
            //}
            //catch(Exception ex)
            //{
            //    MessageBox.Show(ex.Message);
            //}
        }
예제 #2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     InfoVentas infor = new InfoVentas();
 }