有没有办法让页脚在 ListView 上自动可见?我正在处理的应用程序有大约 40-50 个 ListView,在设计器中遍历每个 ListView 并检查“IsFooterVisible”很不方便。更不用说我希望新创建的 ListView 显示页脚。
我正在为 Windows UI 使用 DevExpress XAF v 13.*。
编辑:
到目前为止我所拥有的如下所示。在我的一项操作的 ViewControlsCreated 事件中,我尝试使页脚可见:
private void SummarizeGridDataController_ViewControlsCreated(object sender, EventArgs e)
{
var listView = this.View as ListView;
if (listView != null)
{
GridControl grid = (GridControl)View.Control;
GridView view = (GridView)grid.FocusedView;
view.OptionsView.GroupFooterShowMode = GroupFooterShowMode.VisibleAlways;
}
}