Last Updated: February 25, 2016
·
424
· gangrenagastrit

Find control into template

For sample we will find ASPxListBox into ASPxGridView and control was into tags Templates. If u want find control and u know his name then u must do it:

var listBox = (ASPxListBox) gridNews.FindEditFormTemplateControl("lbLink");

if u will know find control into tags Columns u must do it:

var listBox = (ASPxListBox)grid.FindEditRowCellTemplateControl((GridViewDataColumn)grid.Columns[3], "lbApplication");