protected virtual bool OnRowVisible(GridViewRowInfo row) { if (this.RowVisible == null) { return(true); } RowEnumeratorEventArgs e = new RowEnumeratorEventArgs(row); this.RowVisible((object)this, e); return(e.ProcessRow); }
protected virtual bool OnRowVisible() { if (this.current == null) { return(false); } bool flag = (this.processHiddenRows || this.current.IsVisible) && this.pinPosition == this.current.PinPosition; if (this.pinPosition == PinnedRowPosition.None) { GridViewSystemRowInfo current = this.current as GridViewSystemRowInfo; if (current != null && current.RowPosition != this.rowPosition) { flag = false; } } if (this.viewInfo.ViewTemplate.GroupDescriptors.Count > 0 && this.current is GridViewSummaryRowInfo && !this.viewInfo.ViewTemplate.ShowTotals) { flag = false; } if (this.current is GridViewTableHeaderRowInfo) { flag = flag && this.viewInfo.ViewTemplate.ShowColumnHeaders; } else if (this.current is GridViewNewRowInfo) { flag = flag && GridTraverser.IsNewRowVisible(this.current as GridViewNewRowInfo); } else if (this.current is GridViewSearchRowInfo) { flag = flag && this.viewInfo.ViewTemplate.AllowSearchRow; } else if (this.current is GridViewFilteringRowInfo) { flag = flag && this.viewInfo.ViewTemplate.EnableFiltering && this.viewInfo.ViewTemplate.ShowFilteringRow; } else if (this.current is GridViewDetailsRowInfo) { GridViewHierarchyRowInfo owner = ((GridViewDetailsRowInfo)this.current).Owner as GridViewHierarchyRowInfo; if (owner != null) { flag = flag && owner.IsExpanded; } } if (this.RowVisible == null) { return(flag); } RowEnumeratorEventArgs e = new RowEnumeratorEventArgs(this.current); e.ProcessRow = flag; this.RowVisible((object)this, e); return(e.ProcessRow); }
protected virtual bool OnRowVisible() { if (this.traverser.Current == null || this.TraversalMode == GridTraverser.TraversalModes.ScrollableRows && this.traverser.Current.PinPosition != PinnedRowPosition.None) { return(false); } if (this.RowVisible == null) { return(true); } RowEnumeratorEventArgs e = new RowEnumeratorEventArgs(this.traverser.Current); this.RowVisible((object)this, e); return(e.ProcessRow); }
protected virtual bool OnStepInHierarchy(GridViewRowInfo row) { if (row.ChildRows == null || row.ChildRows.Count == 0) { return(false); } if (this.StepInHierarchy == null) { return(row.IsExpanded); } RowEnumeratorEventArgs e = new RowEnumeratorEventArgs(row); e.ProcessRow = row.IsExpanded; this.StepInHierarchy((object)this, e); return(e.ProcessRow); }
protected virtual bool OnRowVisible() { if (this.current.PinPosition != PinnedRowPosition.None) { return(false); } if (this.RowVisible == null) { return(this.current.IsVisible); } RowEnumeratorEventArgs e = new RowEnumeratorEventArgs(this.current); e.ProcessRow = this.current.IsVisible; this.RowVisible((object)this, e); return(e.ProcessRow); }
private void Enumerator_RowVisible(object sender, RowEnumeratorEventArgs e) { e.ProcessRow = this.OnRowVisible(e.Row); }
private void Enumerator_StepInHierarchy(object sender, RowEnumeratorEventArgs e) { e.ProcessRow = this.OnStepInHierarchy(e.Row); }