private int CalcLevelDelta(GridViewTableRow row, GridViewTableRow nextRow)
        {
            if (row is GridViewTableDataRow && nextRow is GridViewTableDataRow && !RenderHelper.ShowHorizontalGridLine)
                return int.MaxValue;

            return GetRowLevel(nextRow) - GetRowLevel(row);
        }
        protected virtual void RaiseHtmlDataRowPrepared(GridViewTableRow row)
        {
            var eventHandler = (ASPxHtmlDataRowPreparedEventHandler)Events[htmlDataRowPrepared];

            if (eventHandler != null)
            {
                eventHandler(this, new ASPxGridViewTableDataRowEventArgs(row));
            }
        }
        protected override void RaiseHtmlRowPrepared(GridViewTableRow row)
        {
            if (row.RowType == GridViewRowType.Data)
            {
                RaiseHtmlDataRowPrepared(row);
            }

            base.RaiseHtmlRowPrepared(row);
        }
Beispiel #4
0
        private int CalcLevelDelta(GridViewTableRow row, GridViewTableRow nextRow)
        {
            if (row is GridViewTableDataRow && nextRow is GridViewTableDataRow && !RenderHelper.ShowHorizontalGridLine)
            {
                return(int.MaxValue);
            }

            return(GetRowLevel(nextRow) - GetRowLevel(row));
        }
Beispiel #5
0
        private int GetCellCountForBorderRemoval(GridViewTableRow row)
        {
            var num = LevelDeltas[row];

            if (num == int.MaxValue)
            {
                return(row.Cells.Count);
            }

            var rowLevel = GetRowLevel(row);

            if (row.RemoveExtraIndentBottomBorder())
            {
                ++rowLevel;
            }

            if (num <= 0)
            {
                rowLevel += num;
            }

            return(rowLevel);
        }
 private int GetCellCountForBorderRemoval(GridViewTableRow row)
 {
     var num = LevelDeltas[row];
     
     if (num == int.MaxValue)
         return row.Cells.Count;
     
     var rowLevel = GetRowLevel(row);
     
     if (row.RemoveExtraIndentBottomBorder())
         ++rowLevel;
     
     if (num <= 0)
         rowLevel += num;
     
     return rowLevel;
 }
 private int GetRowLevel(GridViewTableRow row)
 {
     return GetRowLevel(row.VisibleIndex);
 }
 internal ASPxGridViewTableDataRowEventArgs(GridViewTableRow row) : this(row, null)
 {
 }
 public ASPxGridViewTableDataRowEventArgs(GridViewTableRow row, object keyValue) : base(row, keyValue)
 {
 }
        protected virtual void RaiseHtmlDataRowPrepared(GridViewTableRow row)
        {
            var eventHandler = (ASPxHtmlDataRowPreparedEventHandler) Events[htmlDataRowPrepared];

            if (eventHandler != null)
            {
                eventHandler(this, new ASPxGridViewTableDataRowEventArgs(row));
            }
        }
        protected override void RaiseHtmlRowPrepared(GridViewTableRow row)
        {
            if (row.RowType == GridViewRowType.Data)
            {
                RaiseHtmlDataRowPrepared(row);
            }

            base.RaiseHtmlRowPrepared(row);
        }
Beispiel #12
0
 private int GetRowLevel(GridViewTableRow row)
 {
     return(GetRowLevel(row.VisibleIndex));
 }