How to bind controls in cellTemplate Programming?

1 reply. Last post: August 5, 2013 1:04 AM by Yudi
Tags :
  • (None)
  • 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 1:17 AM.
Previous Next