private void Chk_Selected_CheckedChanged(object sender, EventArgs e)
 {
     try
     {
         if (Chk_Selected.Checked)
         {
             DataSet ds = ProjectFunctions.GetDataSet("Select AccCode,AccName from ActMst ");
             if (ds.Tables[0].Rows.Count > 0)
             {
                 HelpGridCtrl.DataSource = ds.Tables[0];
                 HelpGrid.BestFitColumns();
                 HelpGridCtrl.Show();
                 HelpGridCtrl.Focus();
                 HelpGridCtrl.BringToFront();
             }
         }
         else
         {
             HelpGridCtrl.Visible = false;
         }
     }
     catch (Exception ex)
     {
         ProjectFunctions.SpeakError(ex.Message);
     }
 }
 private void ShowHelpWindow(string Query)
 {
     try
     {
         HelpGridCtrl.DataSource = null;
         HelpGrid.Columns.Clear();
         HelpGridCtrl.RefreshDataSource();
         HelpGridCtrl.Visible = true;
         HelpGridCtrl.Focus();
         HelpGridCtrl.DataSource = ProjectFunctions.GetDataSet(Query).Tables[0];
         HelpGrid.Columns[0].BestFit();
         HelpGrid.Columns[1].BestFit();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show("Unable to fetch Data please Contact IT Department.\n" + ex.Message, "!Error");
     }
 }