Ejemplo n.º 1
0
        private void them(object sender, EventArgs e)
        {
            mode = 0;
            CTProduct f = new CTProduct();

            f.ShowDialog();
            loadGridview();
        }
Ejemplo n.º 2
0
 private void gridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)//not header
     {
         mode = 1;
         CTProduct f = new CTProduct();
         id_temp = this.gridView.CurrentRow.Cells[0].Value.ToString();
         for (int i = 0; i < data.Rows.Count; i++)
         {
             if (data.Rows[i]["MaSP"].ToString() == id_temp)
             {
                 iTemp = i;
             }
         }
         f.ShowDialog();
         loadGridview();
     }
 }