Esempio n. 1
0
        protected override void createRowTemplates()
        {
            String    nm        = "";
            Thickness defMargin = new Thickness(3, 1, 3, 1);

            nm = "HEADER_LEVEL1";
            CRow h = new CRow(nm, defHeightCol, defCol, defMargin);

            h.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = h;

            CColumn c_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[0], GridUnitType.Star));

            h.AddColumn(c_0);

            CColumn c_1 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[1], GridUnitType.Star));

            h.AddColumn(c_1);

            CColumn c_2 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[2], GridUnitType.Star));

            h.AddColumn(c_2);

            CColumn c_3 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));

            h.AddColumn(c_3);

            CColumn c_4 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));

            h.AddColumn(c_4);

            CColumn c_5 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[5], GridUnitType.Star));

            h.AddColumn(c_5);

            CColumn c_6 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[6], GridUnitType.Star));

            h.AddColumn(c_6);

            CColumn c_7 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[7], GridUnitType.Star));

            h.AddColumn(c_7);

            CColumn c_8 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[8], GridUnitType.Star));

            h.AddColumn(c_8);

            CColumn c_9 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0.5), new GridLength(widths[9], GridUnitType.Star));

            h.AddColumn(c_9);


            nm = "DATA_LEVEL1";
            CRow r0 = new CRow(nm, defHeightCol, defCol, defMargin);

            r0.SetFont(null, FontStyles.Normal, 0, FontWeights.Normal);
            rowdef[nm] = r0;

            CColumn r0_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[0], GridUnitType.Star));

            r0_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c0);

            CColumn r0_c1_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[1], GridUnitType.Star));

            r0_c1_0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c1_0);

            CColumn r0_c1_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[2], GridUnitType.Star));

            r0_c1_1.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c1_1);

            CColumn r0_c2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));

            r0_c2.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c2);

            CColumn r0_c3 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));

            r0_c3.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c3);

            CColumn r0_c4 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[5], GridUnitType.Star));

            r0_c4.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c4);

            CColumn r0_c5 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[6], GridUnitType.Star));

            r0_c5.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c5);

            CColumn r0_c6 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[7], GridUnitType.Star));

            r0_c6.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c6);

            CColumn r0_c7 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[8], GridUnitType.Star));

            r0_c7.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c7);

            CColumn r0_c8 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths[9], GridUnitType.Star));

            r0_c8.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c8);


            nm = "FOOTER_LEVEL1";
            CRow f1 = new CRow(nm, defHeightCol, defCol, defMargin);

            f1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = f1;

            CColumn fc_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[0], GridUnitType.Star));

            f1.AddColumn(fc_0);

            CColumn fc_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[1], GridUnitType.Star));

            f1.AddColumn(fc_1);

            CColumn fc_2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[2], GridUnitType.Star));

            f1.AddColumn(fc_2);

            CColumn fc_3 = new CColumn(new Thickness(0, 0, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));

            fc_3.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_3);

            CColumn fc_4 = new CColumn(new Thickness(0, 0, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));

            fc_4.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_4);

            CColumn fc_5 = new CColumn(new Thickness(0, 0, 0, 0.5), new GridLength(widths[5], GridUnitType.Star));

            fc_5.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_5);

            CColumn fc_6 = new CColumn(new Thickness(0, 0, 0, 0.5), new GridLength(widths[6], GridUnitType.Star));

            fc_6.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_6);

            CColumn fc_7 = new CColumn(new Thickness(0, 0, 0, 0.5), new GridLength(widths[7], GridUnitType.Star));

            fc_7.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_7);

            CColumn fc_8 = new CColumn(new Thickness(0, 0, 0, 0.5), new GridLength(widths[8], GridUnitType.Star));

            fc_8.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_8);

            CColumn fc_9 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths[9], GridUnitType.Star));

            fc_9.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_9);
        }
        protected override void createRowTemplates()
        {
            String    nm        = "";
            Thickness defMargin = new Thickness(3, 1, 3, 1);

            nm = "HEADER_LEVEL1";
            CRow h1 = new CRow(nm, 30, 4, defMargin);

            h1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = h1;

            CColumn c2_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0), new GridLength(widths4Col[0], GridUnitType.Star));

            h1.AddColumn(c2_0);

            CColumn c2_1_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0), new GridLength(widths4Col[1], GridUnitType.Star));

            h1.AddColumn(c2_1_0);

            CColumn c2_1_1 = new CColumn(new Thickness(0.5, 0.5, 0, 0), new GridLength(widths4Col[2], GridUnitType.Star));

            h1.AddColumn(c2_1_1);

            CColumn c2_1_2 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0), new GridLength(widths4Col[3], GridUnitType.Star));

            h1.AddColumn(c2_1_2);


            nm = "HEADER_LEVEL2";
            CRow h2 = new CRow(nm, 30, 5, defMargin);

            h2.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = h2;

            CColumn c3_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths5Col[0], GridUnitType.Star));

            h2.AddColumn(c3_0);

            CColumn c3_1 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths5Col[1], GridUnitType.Star));

            h2.AddColumn(c3_1);

            CColumn c3_2 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths5Col[2], GridUnitType.Star));

            h2.AddColumn(c3_2);

            CColumn c3_3 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths5Col[3], GridUnitType.Star));

            h2.AddColumn(c3_3);

            CColumn c3_4 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0.5), new GridLength(widths5Col[4], GridUnitType.Star));

            h2.AddColumn(c3_4);

            //CColumn c3_5 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths7Col[5], GridUnitType.Star));
            //         h2.AddColumn(c3_5);

            //CColumn c3_6 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0.5), new GridLength(widths7Col[6], GridUnitType.Star));
            //         h2.AddColumn(c3_6);


            nm = "DATA_LEVEL1";
            CRow r1 = new CRow(nm, 30, 4, defMargin);

            r1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = r1;

            CColumn r1_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths4Col[0], GridUnitType.Star));

            r1_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r1.AddColumn(r1_c0);

            CColumn r1_c1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths4Col[1], GridUnitType.Star));

            r1_c1.SetHorizontalAlignment(HorizontalAlignment.Left);
            r1.AddColumn(r1_c1);

            CColumn r1_c2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths4Col[2], GridUnitType.Star));

            r1_c2.SetHorizontalAlignment(HorizontalAlignment.Left);
            r1.AddColumn(r1_c2);

            CColumn r1_c3 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths4Col[3], GridUnitType.Star));

            r1_c3.SetHorizontalAlignment(HorizontalAlignment.Left);
            r1.AddColumn(r1_c3);


            nm = "DATA_LEVEL2";
            CRow r0 = new CRow(nm, 30, 5, defMargin);

            r0.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = r0;

            CColumn r0_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[0], GridUnitType.Star));

            r0_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c0);

            CColumn r0_c1_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[1], GridUnitType.Star));

            r0_c1_0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c1_0);

            CColumn r0_c1_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[2], GridUnitType.Star));

            r0_c1_1.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c1_1);

            CColumn r0_c2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[3], GridUnitType.Star));

            r0_c2.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c2);

            CColumn r0_c3 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths5Col[4], GridUnitType.Star));

            r0_c3.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c3);

            //CColumn r0_c4 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths7Col[5], GridUnitType.Star));
            //r0_c4.SetHorizontalAlignment(HorizontalAlignment.Right);
            //r0.AddColumn(r0_c4);

            //CColumn r0_c5 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths7Col[6], GridUnitType.Star));
            //r0_c5.SetHorizontalAlignment(HorizontalAlignment.Left);
            //r0.AddColumn(r0_c5);


            nm = "DATA_LEVEL3";
            CRow r2 = new CRow(nm, 30, 5, defMargin);

            r2.SetFont(null, FontStyles.Normal, 0, FontWeights.Normal);
            rowdef[nm] = r2;

            CColumn r2_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[0], GridUnitType.Star));

            r2_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r2.AddColumn(r2_c0);

            CColumn r2_c1_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[1], GridUnitType.Star));

            r2_c1_0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r2.AddColumn(r2_c1_0);

            CColumn r2_c1_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[2], GridUnitType.Star));

            r2_c1_1.SetHorizontalAlignment(HorizontalAlignment.Right);
            r2.AddColumn(r2_c1_1);

            CColumn r2_c2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[3], GridUnitType.Star));

            r2_c2.SetHorizontalAlignment(HorizontalAlignment.Right);
            r2.AddColumn(r2_c2);

            CColumn r2_c3 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths5Col[4], GridUnitType.Star));

            r2_c3.SetHorizontalAlignment(HorizontalAlignment.Right);
            r2.AddColumn(r2_c3);

            //CColumn r2_c4 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths7Col[5], GridUnitType.Star));
            //r2_c4.SetHorizontalAlignment(HorizontalAlignment.Right);
            //r2.AddColumn(r2_c4);

            //CColumn r2_c5 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths7Col[6], GridUnitType.Star));
            //r2_c5.SetHorizontalAlignment(HorizontalAlignment.Left);
            //r2.AddColumn(r2_c5);

            nm = "FOOTER_LEVEL1";
            CRow f1 = new CRow(nm, 30, 5, defMargin);

            f1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = f1;

            CColumn fc_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[0], GridUnitType.Star));

            f1.AddColumn(fc_0);

            CColumn fc_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[1], GridUnitType.Star));

            f1.AddColumn(fc_1);

            CColumn fc_2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[2], GridUnitType.Star));

            fc_2.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_2);

            CColumn fc_3 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths5Col[3], GridUnitType.Star));

            fc_3.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_3);

            CColumn fc_4 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths5Col[4], GridUnitType.Star));

            fc_4.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_4);

            //CColumn fc_5 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths7Col[5], GridUnitType.Star));
            //fc_5.SetHorizontalAlignment(HorizontalAlignment.Right);
            //f1.AddColumn(fc_5);

            //CColumn fc_6 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths7Col[6], GridUnitType.Star));
            //fc_6.SetHorizontalAlignment(HorizontalAlignment.Right);
            //f1.AddColumn(fc_6);
        }
Esempio n. 3
0
        protected override void createRowTemplates()
        {
            String    nm        = "";
            Thickness defMargin = new Thickness(3, 1, 3, 1);

            nm = "HEADER_LEVEL1";
            CRow h2 = new CRow(nm, 30, 6, defMargin);

            h2.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = h2;

            CColumn c2_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[0], GridUnitType.Star));

            h2.AddColumn(c2_0);

            CColumn c2_1_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[1], GridUnitType.Star));

            h2.AddColumn(c2_1_0);

            CColumn c2_1_1 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[2], GridUnitType.Star));

            h2.AddColumn(c2_1_1);

            CColumn c2_2 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));

            h2.AddColumn(c2_2);

            CColumn c2_3 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));

            h2.AddColumn(c2_3);

            CColumn c2_4 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0.5), new GridLength(widths[5], GridUnitType.Star));

            h2.AddColumn(c2_4);


            nm = "DATA_LEVEL1";
            CRow r0 = new CRow(nm, 30, 6, defMargin);

            r0.SetFont(null, FontStyles.Normal, 0, FontWeights.Normal);
            rowdef[nm] = r0;


            CColumn r0_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[0], GridUnitType.Star));

            r0_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c0);

            CColumn r0_c1_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[1], GridUnitType.Star));

            r0_c1_0.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c1_0);

            CColumn r0_c1_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[2], GridUnitType.Star));

            r0_c1_1.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c1_1);

            CColumn r0_c2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));

            r0_c2.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c2);

            CColumn r0_c3 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));

            r0_c3.SetHorizontalAlignment(HorizontalAlignment.Left);
            r0.AddColumn(r0_c3);

            CColumn r0_c4 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths[5], GridUnitType.Star));

            r0_c4.SetHorizontalAlignment(HorizontalAlignment.Right);
            r0.AddColumn(r0_c4);


            nm = "FOOTER_LEVEL1";
            CRow f1 = new CRow(nm, 30, 6, defMargin);

            f1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = f1;

            CColumn fc_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[0], GridUnitType.Star));

            f1.AddColumn(fc_0);

            CColumn fc_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[1], GridUnitType.Star));

            f1.AddColumn(fc_1);

            CColumn fc_2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[2], GridUnitType.Star));

            f1.AddColumn(fc_2);

            CColumn fc_3 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));

            f1.AddColumn(fc_3);

            CColumn fc_4 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));

            fc_4.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_4);

            CColumn fc_5 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths[5], GridUnitType.Star));

            fc_5.SetHorizontalAlignment(HorizontalAlignment.Right);
            f1.AddColumn(fc_5);
        }
Esempio n. 4
0
        protected override void createRowTemplates()
        {
            String    nm        = "";
            Thickness defMargin = new Thickness(3, 1, 3, 1);

            #region HEADER_LEVEL1
            nm = "HEADER_LEVEL1";
            CRow h1 = new CRow(nm, 30, 2, defMargin);
            h1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = h1;

            CColumn c1_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0), new GridLength(widths2[0], GridUnitType.Star));
            h1.AddColumn(c1_0);

            CColumn c1_1 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0), new GridLength(widths2[1], GridUnitType.Star));
            h1.AddColumn(c1_1);
            #endregion

            #region HEADER_LEVEL2
            nm = "HEADER_LEVEL2";
            CRow h2 = new CRow(nm, 30, 4, defMargin);
            h2.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = h2;

            CColumn c2_0 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths3[0], GridUnitType.Star));
            h2.AddColumn(c2_0);

            CColumn c2_1 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths3[1], GridUnitType.Star));
            h2.AddColumn(c2_1);

            CColumn c2_2 = new CColumn(new Thickness(0.5, 0.5, 0, 0.5), new GridLength(widths3[2], GridUnitType.Star));
            h2.AddColumn(c2_2);

            CColumn c2_3 = new CColumn(new Thickness(0.5, 0.5, 0.5, 0.5), new GridLength(widths3[3], GridUnitType.Star));
            h2.AddColumn(c2_3);
            #endregion


            #region DATA_LEVEL1
            nm = "DATA_LEVEL1";
            CRow r0 = new CRow(nm, 30, 2, defMargin);
            r0.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = r0;

            CColumn r0_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths2[0], GridUnitType.Star));
            r0_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c0);

            CColumn r0_c1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths2[1], GridUnitType.Star));
            r0_c1.SetHorizontalAlignment(HorizontalAlignment.Center);
            r0.AddColumn(r0_c1);
            #endregion

            #region DATA_LEVEL2
            nm = "DATA_LEVEL2";
            CRow r1 = new CRow(nm, 30, 4, defMargin);
            r1.SetFont(null, FontStyles.Normal, 0, FontWeights.Normal);
            rowdef[nm] = r1;

            CColumn r1_c0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths3[0], GridUnitType.Star));
            r1_c0.SetHorizontalAlignment(HorizontalAlignment.Center);
            r1.AddColumn(r1_c0);

            CColumn r1_c1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths3[1], GridUnitType.Star));
            r1_c1.SetHorizontalAlignment(HorizontalAlignment.Left);
            r1.AddColumn(r1_c1);

            CColumn r1_c2 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths3[2], GridUnitType.Star));
            r1_c2.SetHorizontalAlignment(HorizontalAlignment.Left);
            r1.AddColumn(r1_c2);

            CColumn r1_c3 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(widths3[3], GridUnitType.Star));
            r1_c2.SetHorizontalAlignment(HorizontalAlignment.Left);
            r1.AddColumn(r1_c3);
            #endregion

            #region FOOTER_LEVEL1
            nm = "FOOTER_LEVEL1";
            CRow f1 = new CRow(nm, 30, 3, defMargin);
            f1.SetFont(null, FontStyles.Normal, 0, FontWeights.Bold);
            rowdef[nm] = f1;

            CColumn fc_0 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(totals[0], GridUnitType.Star));
            f1.AddColumn(fc_0);

            CColumn fc_1 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(totals[1], GridUnitType.Star));
            f1.AddColumn(fc_1);

            CColumn fc_2 = new CColumn(new Thickness(0.5, 0, 0.5, 0.5), new GridLength(totals[2], GridUnitType.Star));
            f1.AddColumn(fc_2);

            //CColumn fc_3 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[3], GridUnitType.Star));
            //fc_3.SetHorizontalAlignment(HorizontalAlignment.Right);
            //f1.AddColumn(fc_3);

            //CColumn fc_4 = new CColumn(new Thickness(0.5, 0, 0, 0.5), new GridLength(widths[4], GridUnitType.Star));
            //fc_4.SetHorizontalAlignment(HorizontalAlignment.Right);
            //f1.AddColumn(fc_4);
            #endregion
        }