private void txtSearch_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         if (dgvCurrrentReading.RowCount == 0)
         {
             frmCurrentReading formreading = new frmCurrentReading();
             formreading.Show();
         }
     }
 }
        private void dgvCurrrentReading_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmCurrentReading formreading = new frmCurrentReading();

            formreading.Show();
        }