【发布时间】:2013-09-20 12:29:28
【问题描述】:
我正在尝试在项目的 ItemDataBound 事件中将内容写入项目的组页脚。 任何人都知道如何从项目本身访问项目的组页脚? 换句话说,我如何在绑定项目对象时从项目对象中获取项目的关联组页脚?
protected void grid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
**GridItemGroupFooter footer = item.GroupFooter** <-- Pseudocode for what I want to do
}
}
【问题讨论】: