Example #1
0
        private void LoadData()
        {
            ColumnData = GetData();
            Main_GridControl.DataSource = ColumnData;

            var data = ColumnData.GroupBy(o => o.TableName).Select(o => new ColumnInfoGroup {
                TableName = o.Key, ColumnCount = o.Count()
            }).ToList();

            ColumnDataGroup = new BindingList <ColumnInfoGroup>(data);
            Group_GridControl.DataSource = ColumnDataGroup;
        }