Esempio n. 1
0
        public ColumnSettings(DataGridViewColumnCollection columns)
        {
            SettingList = new List<ColumnSetting>(columns.Count);

            foreach (DataGridViewColumn c in columns)
            {
                ColumnSetting cs = new ColumnSetting();
                cs.DisplayIndex = c.DisplayIndex;
                cs.Name = c.Name;
                cs.Width = c.Width;
                cs.Visible = c.Visible;
                SettingList.Add(cs);
            }
        }
Esempio n. 2
0
        public ColumnSettings(DataGridViewColumnCollection columns)
        {
            SettingList = new List <ColumnSetting>(columns.Count);

            foreach (DataGridViewColumn c in columns)
            {
                ColumnSetting cs = new ColumnSetting();
                cs.DisplayIndex = c.DisplayIndex;
                cs.Name         = c.Name;
                cs.Width        = c.Width;
                cs.Visible      = c.Visible;
                SettingList.Add(cs);
            }
        }