This project is read-only.

LinkedControls in SourceGrid

Mar 12, 2009 at 4:45 PM

I have created a UserControl and have added to the grid.LinkedControls as described in one of the sample.

Now when the user clicks the row in the grid, how can I retrieve the Control in the row/cell ?

Mar 13, 2009 at 11:15 AM
You could iterate through grid.LinkedControls and serach for the control in your cell. Though that is not the best solution, i must agree
Mar 13, 2009 at 5:27 PM
Keep the control or the LinkedControlValue in the tag property of the cell ?
RichTextBox rtb = new RichTextBox();
SourceGrid.LinkedControlValue lk = new SourceGrid.LinkedControlValue(rtb, new SourceGrid.Position(1, 1));
grid1[1, 1].Tag = rtb;
((RichTextBox)(grid1[1, 1].Tag)).Text = "new text";