Esempio n. 1
0
        public static DataGridView HideSpecificColoum(DataGridView dg, params String[] NumericValue)
        {
            DataGridView dgDet = dg;

            foreach (DataGridViewColumn dgCol in dgDet.Columns)
            {
                if (NumericValue.Any(x => x.Contains(dgCol.Name.ToUpper())))
                {
                    dgCol.Visible = false;
                }
            }

            return(dgDet);
        }