Пример #1
0
        public void LoadData(List <NeedsItemInfo> items, NeedsItemInfo defaultItem, FormListConfiguration formConfiguration)
        {
            _items       = items;
            _defaultItem = defaultItem;

            gridView.Appearance.Row.BackColor          = formConfiguration.BackgroundColor;
            gridView.Appearance.RowSeparator.BackColor = formConfiguration.BackgroundColor;
            gridView.Appearance.Empty.BackColor        = formConfiguration.BackgroundColor;

            gridControl.DataSource = _items
                                     .Select(item => ListItemModel.FromParent(item, formConfiguration))
                                     .ToList();
        }