Beispiel #1
0
 private void dgvShipments_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     SearchJob mySJob = null;
     try
     {
         mySJob = new SearchJob(connectionString);
         myRowIndex = dgvShipments.Rows[e.RowIndex].Cells[0].Value.ToString();
         mySJob.getitem(txtJobNum.Text, dgvShipments.Rows[e.RowIndex].Cells[0].Value.ToString(), dgvItm);
         mySJob.Dispose();
     }
     catch
     {
         //MessageBox.Show(ex.ToString());
     }
     finally
     {
         mySJob = null;
     }
 }