|  |  | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |  | 
 |  |  |             for (int j = HRecProc1Col; j < grdMain.Columns.Count-2; j++) | 
 |  |  |             { | 
 |  |  |                 if (checkBox1.Checked == false) | 
 |  |  |                 { | 
 |  |  |                     if (ClsPub.isStrNull(grdMain.Columns[j].HeaderText).ToUpper().Trim().Contains("ä¸åæ ¼") == true) | 
 |  |  |                     { | 
 |  |  |                         grdMain.Columns[j].Visible = false; | 
 |  |  |                     } | 
 |  |  |                     else | 
 |  |  |                     { | 
 |  |  |                         grdMain.Columns[j].Visible = true; | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 else | 
 |  |  |                 { | 
 |  |  |                     grdMain.Columns[j].Visible = true; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             //for (int j = HRecProc1Col; j < grdMain.Columns.Count-2; j++) | 
 |  |  |             //{ | 
 |  |  |             //    if (checkBox1.Checked == false) | 
 |  |  |             //    { | 
 |  |  |             //        if (ClsPub.isStrNull(grdMain.Columns[j].HeaderText).ToUpper().Trim().Contains("ä¸åæ ¼") == true) | 
 |  |  |             //        { | 
 |  |  |             //            grdMain.Columns[j].Visible = false; | 
 |  |  |             //        } | 
 |  |  |             //        else | 
 |  |  |             //        { | 
 |  |  |             //            grdMain.Columns[j].Visible = true; | 
 |  |  |             //        } | 
 |  |  |             //    } | 
 |  |  |             //    else | 
 |  |  |             //    { | 
 |  |  |             //        grdMain.Columns[j].Visible = true; | 
 |  |  |             //    } | 
 |  |  |             //} | 
 |  |  |             // | 
 |  |  |         } | 
 |  |  |  |