private void FrmStockComparision_KeyDown(object sender, KeyEventArgs e)
  {
 
      if (e.KeyCode == Keys.F8)
      {
          if (gridView1.FocusedRowHandle >= 0)
          {
              var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
              var frm = new Puranalyse(dr["itemno"].ToString(), dr["itemname"].ToString());
              frm.Show();
          }
      }
  }
 private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
         var frm = new Puranalyse(dr["itemno"].ToString(), dr["itemname"].ToString());
         frm.Show();
     }
 }
 private void ConsolidatedInventory_KeyDown(object sender, KeyEventArgs e)
 {
     if(e.KeyCode==Keys.F10)
         KeyF10();
     if (e.KeyCode == Keys.F8)
     {
         if (gridView1.FocusedRowHandle >= 0)
         {
             var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
             var frm = new Puranalyse(dr["itemno"].ToString(), dr["itemname"].ToString());
             frm.Show();
         }
     }
 }