protected override PositionInfo CalcColumnDrag(GridHitInfo hit, GridColumn column) { PositionInfo patchedPI = new PositionInfo(); patchedPI = base.CalcColumnDrag(hit, column); if (patchedPI.Index == HideElementPosition && patchedPI.Valid) { CustomGridColumn col = column as CustomGridColumn; if (col != null) if (!col.OptionsColumn.AllowQuickHide) { patchedPI = new PositionInfo(); patchedPI.Valid = false; } } return patchedPI; }
protected virtual bool GetColumnMoveState(CustomGridColumn column) { return column.OptionsColumn.AllowMove && OptionsCustomization.AllowColumnMoving; }
//protected virtual void PopulateHideEdit() protected virtual bool GetColumnHideState(CustomGridColumn column) { return column.OptionsColumn.AllowQuickHide && OptionsCustomization.AllowQuickHideColumns; }