Exemplo n.º 1
0
 protected virtual void InitializeViewInfo()
 {
     if (this.parentViewInfo != null)
     {
         this.rowsViewState                = new VirtualGridTableViewState(this.parentViewInfo.RowCount, 24, this.parentViewInfo.RowSpacing, true);
         this.columnsViewState             = new VirtualGridTableViewState(this.parentViewInfo.ColumnCount, 100, this.parentViewInfo.CellSpacing, false);
         this.showFilterRow                = this.parentViewInfo.showFilterRow;
         this.showHeaderRow                = this.parentViewInfo.showHeaderRow;
         this.allowColumnSort              = this.parentViewInfo.allowColumnSort;
         this.showNewRow                   = this.parentViewInfo.showNewRow;
         this.allowColumnHeaderContextMenu = this.parentViewInfo.allowColumnHeaderContextMenu;
         this.allowCellContextMenu         = this.parentViewInfo.allowCellContextMenu;
         this.allowEdit  = this.parentViewInfo.allowEdit;
         this.allowCut   = this.parentViewInfo.allowCut;
         this.allowCopy  = this.parentViewInfo.allowCopy;
         this.allowPaste = this.parentViewInfo.allowPaste;
         this.enableAlternatingRowColor = this.parentViewInfo.enableAlternatingRowColor;
         this.allowColumnResize         = this.parentViewInfo.allowColumnResize;
         this.allowRowResize            = this.parentViewInfo.allowRowResize;
     }
     else
     {
         this.rowsViewState    = new VirtualGridTableViewState(0, 24, -1, true);
         this.columnsViewState = new VirtualGridTableViewState(0, 100, -1, false);
     }
     this.rowsViewState.PropertyChanged    += new PropertyChangedEventHandler(this.rowsViewState_PropertyChanged);
     this.columnsViewState.PropertyChanged += new PropertyChangedEventHandler(this.columnsViewState_PropertyChanged);
     this.rowsViewState.PageIndexChanging  += new VirtualGridPageChangingEventHandler(this.rowsViewState_PageIndexChanging);
     this.rowsViewState.PageIndexChanged   += new EventHandler(this.rowsViewState_PageIndexChanged);
     this.childViewInfos  = new Dictionary <int, VirtualGridViewInfo>();
     this.sortDescriptors = new SortDescriptorCollection();
     this.sortDescriptors.CollectionChanged += new NotifyCollectionChangedEventHandler(this.sortDescriptors_CollectionChanged);
     this.filterDescriptors = new FilterDescriptorCollection();
     this.filterDescriptors.CollectionChanged += new NotifyCollectionChangedEventHandler(this.filterDescriptors_CollectionChanged);
 }
Exemplo n.º 2
0
 public VirtualGridTraverser(VirtualGridTableViewState viewState)
 {
     this.viewState = viewState;
 }
Exemplo n.º 3
0
 public VirtualGridItemScroller(VirtualGridTableViewState viewState)
 {
     this.viewState = viewState;
 }