This is a migrated thread and some comments may be shown as answers.

[Solved] find control

2 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lisa
Top achievements
Rank 1
Lisa asked on 19 Jun 2013, 01:23 AM
Is there a good documentation explain how controls are nested and how to find/access the controls in code behind? I have controls within radgrid, mastertable, etc. burying or nested in so many layers that I don't know how to get a handle to the controls. When the controls are outside those layers, it is so easy to access them by Label1.Text without having to findcontrol().

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 20 Jun 2013, 01:29 PM
Hi Lisa,

Whenever a label or any control is inside a radgrid ,it can only be accessed by the findcontrol(). Make sure that you add the controls into a GridTemplateColumn of the radgrid.Have a look at this documentation.
Accessing Cells and Rows

Thanks,
Shinu
0
Lisa
Top achievements
Rank 1
answered on 16 Jul 2013, 06:27 PM
Thank you.
Tags
Grid
Asked by
Lisa
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Lisa
Top achievements
Rank 1
Share this question
or