How to bind controls in cellTemplate Programming?,

1 reply. Last post: August 1, 2013 2:50 AM by zhu hm
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
zhu hmMember

Hello,


When I want to realize a GridColumn's CellTemplate, and binding data in back platform. For example, when I set a column's columntype='Template',and set celltemplate with dropdownlist control.But when I use System.Web.UI.WebControls.DropDownList droplst = (System.Web.UI.WebControls.DropDownList)e.Cell.GetTemplateContainer().FindControl("DropDownList1"); it can't find the DropDownList1 control,will you please giev me a hand? Thank you very much! I attached my sample bellow.


All times are GMT -5. The time now is 3:12 PM.
Previous Next