<tr class="RadGridItem">
<td width="100">
<asp:Label ID="lblFullName" runat="server"
Text ='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'
ToolTip='<%# "Current Grade: " + DataBinder.Eval(Container.DataItem,"CurrentGrade") + "%" +
" Percent Complete: " + DataBinder.Eval(Container.DataItem,"PercentComplete") + "%" %>' />
</td>
<asp:Repeater ID="rptAssessments" runat="server" DataSource='<%# DataBinder.Eval(Container.DataItem, "EnrollmentAssessments") %>'>
<ItemTemplate>
<td style="padding :0px 0px 0px 0px; width:20px; height: 20px;">
<asp:LinkButton ID="lnkEdit" runat="server"
OnClick="AssessmentClick"
style=' <%# "color:" + this.GetAssessmentColor(Container.DataItem) %>'
ToolTip='<%# DataBinder.Eval(Container.DataItem, "AssessmentName") + Environment.NewLine +
DataBinder.Eval(Container.DataItem, "EnrollmentAssessmentStateName") + "(" +
DataBinder.Eval(Container.DataItem, "PercentGradeDisplay") + "%) " +
GetPointsPossible(Container.DataItem) + " pts possible" %>'
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "EnrollmentAssessmentID") %>'
Text='<%# this.GetAssessmentDisplay(Container.DataItem) %>' />
</td>
</ItemTemplate>
</asp:Repeater>
</tr>
</ItemTemplate>
This is the code. The number of columns will be dynamic based on the criteria used to generate the list.
Thanks.