Hi Salaman,
I assume that you are referring to FormTemplate EditForm when editing a Grid records, if that is the case, let's assume you have the following Grid configuration. EditMode = EditForms, EditFormType = Template then the code snippets you've shared are in the FormTemplate.
You can check out the
Accessing Cells and Rows help article that describes in more details and shows examples for accessing cells, values and controls in RadGrid.
Here are some specific examples that you can try:
I you would like to get reference to the controls in this form using the SelectedIndexChanged event of the RadDropDownList, you could do it as follows:
You can also do it in other events, for example the ItemDataBound:
In case the scenario you are looking for is different, please provide us a little more information on it. It would be helpful if you could share the grid markup and code behind so that we can get a better understanding on the exact configuration.
I hope this will prove helpful.
Kind regards,
Attila Antal
Progress Telerik
Get
quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.
Learn More.