Example #1
0
        private GridViewBoundColumn(GridViewBinder <TObjectType> parentBinder, PropertyInfo propertyInfo,
                                    IValidationEngine validationEngine, IGridColumnCreator gridColumnCreator)
        {
            _parentBinder     = parentBinder;
            _propertyInfo     = propertyInfo;
            _validationEngine = validationEngine;

            _cellBinders = new Cache <TObjectType, ICellBinder <TObjectType, TPropertyType> >(cell => cell.Source);

            XtraColumn            = gridColumnCreator.CreateFor <TPropertyType>(parentBinder.GridView);
            DefaultRepositoryItem = this.DefaultRepository();

            this.WithCaption(PropertyName);
        }
        // GridColumn

        public static GridColumn <THelper> GridColumn <THelper>(this IGridColumnCreator <THelper> creator, int?md = null)
            where THelper : BootstrapHelper <THelper>
        {
            return(new GridColumn <THelper>(creator).SetMd(md));
        }
 public GridViewColumn(GridViewBinder <TObjectType> parentBinder, IGridColumnCreator columnCreator)
 {
     XtraColumn = columnCreator.CreateFor <TObjectType>(parentBinder.GridView);
 }
Example #4
0
 protected GridViewAutoBindColumn(GridViewBinder <TObjectType> parentBinder, PropertyInfo propertyInfo, IValidationEngine validationEngine, IGridColumnCreator columnCreator)
 {
     _propertyInfo         = propertyInfo;
     _validationEngine     = validationEngine;
     XtraColumn            = columnCreator.CreateFor <TPropertyType>(PropertyName, parentBinder.GridView);
     DefaultRepositoryItem = this.DefaultRepository();
     this.WithCaption(PropertyName);
 }