public void Assign(XtraReport report, XRTable captionTable, XRTable dataTable)
        {
            DetachEvents();

            _report = report;

            _captionTable = captionTable;
            SetCaptions();

            _dataTable = dataTable;
            WireUpEvents();
            //
            if (ManualFill && !ManualFillOnly)
            {
                XRTableRow dataRow = _dataTable.Rows.FirstRow;
                _dataTable.InsertRowBelow(dataRow);
                XRTableRow manualFillRow = _dataTable.Rows[1];
                // set tags for cells 1 - 7 (days of week, first cell is name)
                for (int idx = 0; idx < manualFillRow.Cells.Count; idx++)
                {
                    if (idx > 0 && idx <= 7)
                    {
                        manualFillRow.Cells[idx].Tag          = dataRow.Cells[idx].Tag;
                        manualFillRow.Cells[idx].BeforePrint += PrintManualFillCell;
                    }
                    manualFillRow.Cells[idx].Borders = dataRow.Cells[idx].Borders;
                    manualFillRow.Cells[idx].Font    = dataRow.Cells[idx].Font;
                }
                if (!HideSums)
                {
                    manualFillRow.Cells[8].BackColor = Color.Black;
                }
            }
        }
        public void Assign(XtraReport report, XRTable captionTable, XRTable dataTable)
        {
            DetachEvents();

            _report = report;

            _captionTable = captionTable;
            SetCaptions();

            _dataTable = dataTable;
            WireUpEvents();
            //
            if(ManualFill && ! ManualFillOnly)
            {
                XRTableRow dataRow = _dataTable.Rows.FirstRow;
                _dataTable.InsertRowBelow(dataRow);
                XRTableRow manualFillRow = _dataTable.Rows[1];
                // set tags for cells 1 - 7 (days of week, first cell is name)
                for(int idx = 0; idx < manualFillRow.Cells.Count; idx++)
                {
                    if (idx>0 && idx<=7)
                    {
                        manualFillRow.Cells[idx].Tag = dataRow.Cells[idx].Tag;
                        manualFillRow.Cells[idx].BeforePrint += PrintManualFillCell;
                    }
                    manualFillRow.Cells[idx].Borders = dataRow.Cells[idx].Borders;
                    manualFillRow.Cells[idx].Font = dataRow.Cells[idx].Font;
                }
                if(!HideSums)
                {
                    manualFillRow.Cells[8].BackColor = Color.Black;
                }
            }
        }