0
내 gridview의 템플릿 필드 인 링크 버튼이 있습니다. 나는gridviewin.net 내부의 링크 버튼에 툴팁 설정
protected void Grid_course_RowDataBound(object sender, GridViewRowEventArgs e)
{
connect con = new connect(date);
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton l = (LinkButton)e.Row.Cells[0].FindControl("Course_Name");
IList<connect.Course> a = con.getCourse(l.Text);
var result = string.Join(",", a[0].Course_Description__c);
l.ToolTip = result.ToString();
}
}
은 첫 번째 행에 대해서만 작동, 작동하지 않는 각 row.My 코드의 LinkButton의 툴팁 등 다양한 텍스트를 설정해야합니다.
반복 할 때 결과에 무엇이 포함됩니까? –
툴팁으로 설정해야하는 gridview의 필드를 기반으로 salesforce 객체에서 데이터를 가져옵니다. – user3065219