LinkedControlValue bug ?

Apr 13, 2009 at 9: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));
                grid1.LinkedControls.Add(lk);
            }
            grid1.Rows.Clear();

Thank you for your help
Coordinator
Apr 15, 2009 at 5: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 2:28 PM
That would be my guess indeed
Coordinator
May 13, 2009 at 1:08 PM

Ok, now everything should work :)