This project is read-only.

LinkedControlValue bug ?

Apr 13, 2009 at 10:52 AM
Dear all,

I am using an embedded control into a cell, and it works fine, until I decide to remove all the rows and to start a new grid from scratch. I get a ou of range error when calling Rows.Clear()
Here is the code. Am I doing sthg wrong, or the LinkedControlValue collection is not properly erased ?

            grid1.Redim(10, 1);
            for (int i = 0; i < 10; i++)
                grid1[i, 0] = new SourceGrid.Cells.Cell();
                RichTextBox rtb = new RichTextBox();
                SourceGrid.LinkedControlValue lk = new SourceGrid.LinkedControlValue(rtb, new SourceGrid.Position(i, 0));

Thank you for your help
Apr 15, 2009 at 6:25 AM
Yes, it is a bug. Thanks for reporting.

When we remove rows, i suppose linked controls should also be removed as well, right?
Apr 30, 2009 at 3:28 PM
That would be my guess indeed
May 13, 2009 at 2:08 PM

Ok, now everything should work :)