public virtual object Apply(GridItemData data)
        {
            var model = data.Control.GetValue <GridControlDtgeValue>();

            dynamic config = new ExpandoObject();

            config.gridSize = data.Control.Area.Grid;

            return(CreateVm(model.Content, data.ContextItems, config));
        }
        public object Content(GridItemData data)
        {
            foreach (var i in gridItems)
            {
                if (i.IsValid(data.Control.Editor.Alias, data.Control))
                {
                    return(i.Apply(data));
                }
            }

            foreach (var i in gridItemsInternal)
            {
                if (i.IsValid(data.Control.Editor.Alias, data.Control))
                {
                    return(i.Apply(data));
                }
            }

            return(null);
        }