Divelements Community
Customer discussion of all Divelements products

Bad nested grid bug

Latest post 11-30-2007 19:51 by Tim Dawson. 2 replies.
  • 11-27-2007 1:39

    Storm [st] Bad nested grid bug

    Past a certain number of rows added to a nested grid, the grid doesn't respond to clicks.
    You cannot select rows, you cannot click on the column headers to sort -- EXCEPT at the very bottom of the nested grid.

    This is in SandGrid 1.1.2.1 (but also existed in the previous version).

    Here are the minimum reproduction steps I've found:

    1. Make a new form, double click the title bar to create a Load handler.
    2. Add a split container, dock it Fill in the form.
    3. Add a button on one side, call it buttonFill, double click the button to create a Click handler.
    4. Add a SandGrid on the other side, dock it Fill.
    5. Add/insert the following code:

            private NestedGridRow ngr;

            private void Form1_Load(object sender, EventArgs e)
            {
                GridRow rootRow = new GridRow("Root");
                rootRow.Expanded = true;
                sandGrid1.Rows.Add(rootRow);

                ngr = new NestedGridRow();

                ngr.NestedGrid.ShowColumnHeaders = true;

                GridIntegerColumn indexColumn = new GridIntegerColumn();
                indexColumn.HeaderText = "Index";
                indexColumn.Width = 200;
                indexColumn.Clickable = true;

                ngr.NestedGrid.Columns.Add(indexColumn);

                rootRow.NestedRows.Add(ngr);
            }

            private void buttonFill_Click(object sender, EventArgs e)
            {
                ngr.NestedGrid.Rows.Clear();
               
                for(int i = 0; i < 200; i++)
                {
                    GridRow row = new GridRow(new GridCell[] {
                        new GridIntegerCell(i),
                    });
                    ngr.NestedGrid.Rows.Add(row);
                }
            }

    Observe how changing the "200" constant affects things... if you use a low number (say 10), everything will work as expected.
    Also observe how the threshhold for the bug varies with the actual height of the parent grid... just in case this helps...

    Yves
  • 11-27-2007 9:59 In reply to

    • Dream
    • Top 10 Contributor
    • Joined on 04-12-2006
    • Germany
    • Posts 50

    Indifferent [:|] Re: Bad nested grid bug

    I can reproduce it to.

    To sort the nested grid SandGrid.Height must be at least 1823 with Border=Fixed3D or 1819 with Border=None.

    With CellDragBehavior=ExtendSelection i can select rows, that can't be selected per mouse-click.

    @deathangel
    Do you send this bug to the customer support to?

  • 11-30-2007 19:51 In reply to

    Re: Bad nested grid bug

    We think we have fixed this bug ready for the next release. Please contact customer support to obtain a hotfix build so you can verify whether the fix resolves your issue.

    Thanks!
Page 1 of 1 (3 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems