Пример #1
0
        /// <exclude/>
        /// <summary>
        /// </summary>
        /// <param name="cellType"></param>
        /// <exception cref="NotImplementedException"></exception>
        DataControlFieldCell IHasCustomCells.CreateCell(DataControlCellType cellType)
        {
            switch (cellType)
            {
            case DataControlCellType.Header:
                if (_headerRow == null)
                {
                    _headerRow = new MatrixHeaderRow(this);
                    return(_headerRow);
                }
                return(new MatrixHeaderRowProxy(_headerRow));

            case DataControlCellType.DataCell:
                return(new MatrixRow(this));

            case DataControlCellType.Footer:
                return(_footerRow ?? (_footerRow = new MatrixRow(this)));

            default:
                throw new NotImplementedException();
            }
        }
Пример #2
0
 public MatrixHeaderRowProxy(MatrixHeaderRow proxy)
     : base(proxy.ContainingField)
 {
     _proxy = proxy;
 }