{
Cell groupCell = groupList.HeaderContent;
CellRenderer groupRenderer = GetCellRenderer(groupCell, true);
+
ItemContext groupItemContext = new ItemContext();
groupItemContext.Cell = groupCell;
groupItemContext.Renderer = groupRenderer;
+ groupItemContext.IsGroupItem = true;
+ groupItemContext.ListOfSubItems = groupList;
+ _itemContextList.Add(groupItemContext);
if (beforeCell != null)
{
(groupItemContext.Item as GenListItem).SelectionMode = GenListSelectionMode.None;
groupItemContext.Item.IsEnabled = groupCell.IsEnabled;
- groupItemContext.IsGroupItem = true;
-
- groupItemContext.ListOfSubItems = groupList;
groupItemContext.Item.Deleted += ItemDeletedHandler;
- _itemContextList.Add(groupItemContext);
+
}
/// <summary>
ItemContext itemContext = new ItemContext();
itemContext.Cell = cell;
itemContext.Renderer = renderer;
+ _itemContextList.Add(itemContext);
if (IsGroupingEnabled && groupCell != null)
{
(itemContext.Item as GenListItem).SelectionMode = GenListSelectionMode.Always;
itemContext.Item.IsEnabled = cell.IsEnabled;
+ itemContext.Item.Deleted += ItemDeletedHandler;
cell.PropertyChanged += OnCellPropertyChanged;
(cell as ICellController).ForceUpdateSizeRequested += OnForceUpdateSizeRequested;
- itemContext.Item.Deleted += ItemDeletedHandler;
- _itemContextList.Add(itemContext);
}
/// <summary>