FindControl in Infragistics webDataGrid

IgorB picture IgorB · Jan 14, 2009 · Viewed 14.4k times · Source

I have ig:TemplateDataField that contains label. In InitializeRow event handler I try to find that label with e.Row.FindControl but I get null.

I was not able to find another way to find my label. How to look for controls in WebDataGrid rows during InitializeRow event?

Answer

Ahmed Magdy picture Ahmed Magdy · Nov 12, 2009

You have to specify the column that you want to search in like e.Row.Items[0].FindControl("ControlID") where 0 the column index.