예제 #1
0
        public DataGridCellBuilder <TItem, TProperty> Property <TProperty>(Expression <Func <TItem, TProperty> > selector)
        {
            var cellBuilder = new DataGridCellBuilder <TItem, TProperty>(selector, this);

            AddAction(cellBuilder.ExecuteActions);

            return(cellBuilder);
        }
예제 #2
0
        public DataGridCellBuilder <TItem, TProperty> Property <TProperty>(string propertyName, Func <TItem, TProperty> selectorFun, Action <TItem, object?> setFunc)
        {
            var cellBuilder = new DataGridCellBuilder <TItem, TProperty>(propertyName, selectorFun, setFunc, this);

            AddAction(cellBuilder.ExecuteActions);

            return(cellBuilder);
        }