웹 응용 프로그램에서 RowDataBound 이벤트에서 눈금 컨트롤을 찾으려고합니다. 하지만 객체의 인스턴스에 객체 참조를주는 것은 내 코드입니다.Gridview에서 컨트롤 찾기? Asp.net에서?
protected void mygrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
string empid = "";
empid = ((Label)e.Row .FindControl("lblname")).Text;
}
컨트롤을 찾으려면 클릭하십시오. 감사합니다. 단지처럼 데이터 행에 대한
[2를이'라벨 lblprop_img_id = (라벨) e.Row.Cells를 시도 제어를 얻을 수
을 배치해야 ] .FindControl ("lblprop_img_id"); ' – Murtaza