protected internal virtual void OnPrintHeaderCell(PrintCellEventArgs e)
        {
            this.RunEventScriptAndExpressionBindings <PrintCellEventArgs>(PrintHeaderCellEvent, "PrintHeaderCell", e);
            PrintHeaderCellEventHandler handler = (PrintHeaderCellEventHandler)base.Events[PrintHeaderCellEvent];

            if (!base.DesignMode)
            {
                if (handler != null)
                {
                    handler(this, e);
                }
            }
        }
Example #2
0
        protected virtual BrickStyle CreateBrickStyle(XRDataContainerControl control, VisualBrick parentBrick, VisualBrick valueBrick, XRDataRecord record, int fieldIndex, bool isHeader)
        {
            BrickStyle style = GetActualBrickStyle((DataContainerBrick)parentBrick, isHeader);

            if (isHeader)
            {
                PrintCellEventArgs printCellArgs = new PrintCellEventArgs(control.VisibleHeaders[fieldIndex], valueBrick, style);
                ContainerControl.OnPrintHeaderCell(printCellArgs);
                ((IDataCellBrick)valueBrick).CellPosition |= XRDataCellPosition.Header;
            }
            else
            {
                PrintRecordCellEventArgs printCellArgs = new PrintRecordCellEventArgs(record, control.VisibleHeaders[fieldIndex], valueBrick, style);
                ContainerControl.OnPrintRecordCell(printCellArgs);
            }

            return(style);
        }