コード例 #1
0
 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;
 }
コード例 #2
0
 protected virtual bool GetColumnMoveState(CustomGridColumn column)
 {
     return column.OptionsColumn.AllowMove && OptionsCustomization.AllowColumnMoving;
 }
コード例 #3
0
 //protected virtual void PopulateHideEdit()
 protected virtual bool GetColumnHideState(CustomGridColumn column)
 {
     return column.OptionsColumn.AllowQuickHide && OptionsCustomization.AllowQuickHideColumns;
 }