0
RowDataBound의 특정 반복을 캡처 할 수 있습니까?RowDataBound를 반복 할 수 있습니까?
protected void gvProposals_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
HtmlGenericControl hgcsampleNum = gvExample.Rows[*iteration*]
.FindControl("sample") as HtmlGenericControl;
hgcsampleNum .Attributes.Add("style", "width: 75%; height: 20px");
}
}
각 반복마다 동적으로 변경해야하는 값이 있습니다.
[DataKeys] (https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.datakeys (v = vs.110) .aspx) –