private void refreshLockTable()
 {
     LockDataGrid.DataSource = myServer.ASMan.DataTableFromQuery(lockQuery);
     foreach (DataGridViewTextBoxColumn col in LockDataGrid.Columns)
     {
         col.ToolTipText = ActivityViewer.ProgramManager.GetToolTipText(col.HeaderText);
     }
     LockDataGrid.AutoResizeColumns();
 }
 private void LocksPanel_VisibleChanged(object sender, EventArgs e)
 {
     if (this.Visible)
     {
         if (myServer.dataRefreshInterval != 0)
         {
             LockRefreshTimer.Interval = myServer.dataRefreshInterval;
             LockRefreshTimer.Start();
         }
         refreshLockTable();
         LockDataGrid.AutoResizeColumns();
     }
     else
     {
         if (myServer.dataRefreshInterval != 0)
         {
             LockRefreshTimer.Stop();
         }
     }
 }