<telerik:RadPanelBar ID="rpbSections" runat="server">
<Items>
<telerik:RadPanelItem runat="server">
<Items>
<telerik:RadPanelItem runat="server">
<ItemTemplate>
<asp:GridView ID="gvPlanContents" runat="server" AutoGenerateColumns="True"
DataKeyNames="PlanContentID" HorizontalAlign="Center" Width="60%" ShowHeader="true"
EmptyDataText="No Data here">
</asp:GridView>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
My code starts something like this:
List<PlanSections> mySections = PlanSections.GetAllPlanSections();
rpbSections.DataSource = mySections;
rpbSections.DataValueField =
"PlanSectionID";
rpbSections.DataTextField =
"PlanSectionName";
rpbSections.DataBind();
for (int i = 0; i < rpbSections.Controls.Count; i++)
{
int mySectionID = Convert.ToInt32(rpbSections.Items[i].Value);
// what I need to know is, what code do I use to access the gridview. I want to bind it for each
// of its instantiations, by generating an object that depends on the value of MySectionID.
// Where do I go from here?
}
Thanks!
Laurie