Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Problem with WebTab and WebGrid inside
posted

Hi, I have problem on a simple WEBTAB control (3 tabs) with 3 WebGrid inside (1 each tabs) using <ContentTemplate>.

When the page is loaded, with the first Tab (Tab1) selected, the Webgrid inside a Tab work fine.

But all other WebGrid (hidden, for now, in this view) not showing ROW if contains only ONE "records" (one row). When I try to change Tabs, I find the WebGrid empty with a header show in a middle height in a WebGrid Frame.

With MORE than one row, all working good.

It's important say that if I change "Selected Tab" on TAB 2, the WebGrid inside work fine with only one row, but the problem persist in all Webgrid hidden in Tab 1 and Tab 3.

I format ALL Colums of WebGrid by C# : (sample of "column format")

 Grid.Columns.Clear();

            UltraGridColumn Col;    //Column


            Col = new UltraGridColumn("XXXX", "XXXX", ColumnType.NotSet, "");
            Col.FieldLen = 30;
            Col.Width = Unit.Pixel(130);
            Col.AllowUpdate = AllowUpdate.No;
            Col.Hidden = false;
            Grid.Columns.Add(Col);

 --- ETC ETC -----------------------------------------------------

..and I add rows using this simple code: (sample of "Rows add")

            Grid.Rows.Clear();
            for (Int32 Rig = 0; Rig < _Recs.Count; Rig++)
            {
                //Create ROW
                Grid.Rows.Add();

                //Pop Col
                for (Int32 Col = 0; Col < Grid.Columns.Count; Col++)
                {
                    String KXDD = Grid.Columns[Col].Key;       //Codice Dato;

                    if (KXDD == "A06")
                        Grid.Rows[Rig].Cells[Col].Value = _Recs[Rig].ItemGet(KXDD); \\CheckBox
                    else
                        Grid.Rows[Rig].Cells[Col].Text = _Recs[Rig].ItemGet(KXDD).ToString();  \\Text
                }
            }

 

Anyone have same problem and find a solution?

Thanks