누구든지 RadGrid의 GridTemplateColumn에서 FindControl을 사용하는 방법을 알고 있습니다. EditForm에서 찾을 수 있습니다. 그러나 GridTemplateColumn에서 찾을 수없는 것 같습니다. ItemDataBound 이벤트에서이 작업을 수행하려고합니다. if 문은 결코 사실이 아니며 결코 FindControl에 들어 가지 않습니다.RadGrid의 GridTemplateColumn에서 FindControl
이 내가 노력하고 무엇 :
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
DropDownList ddlAccountLookup = (DropDownList)item["Account"].FindControl("ddlAccountLookup");
}
감사합니다!
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
Label lbl = (Label)item["IsSportingEvent"].FindControl("LabelSporting");
}
난 당신이 item["Account"]
에 중단 점을 넣고 컨트롤은 그 안에 포함되어있는 것을 검사하는 시계를 할 것을 제안 :