Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 devexpress 网格,我不想为字符串列提供任何页脚或组摘要。用户可以通过访问页脚菜单来修改用于页脚摘要的公式。我希望为字符串列禁用此菜单,因为提供的摘要对字符串列没有意义。有任何想法吗?
对于所有对解决方案感兴趣的人:处理网格的 ShowGridMenu 事件:
private void MainView_ShowGridMenu(object sender, GridMenuEventArgs e) { Column col; if (e.MenuType == GridMenuType.Summary && e.HitInfo.Column != null && e.HitInfo.Column.ColumnType == typeof(string)) { e.Allow = false } }