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.
我有一个 cxGrid,它有一个包含一些按钮的列,我希望能够隐藏此列。原因是我使用与输入相同的网格进行打印。但是报告中不需要某些列。我知道如何使用 GetColumnByFieldName 隐藏列,但我不知道如何使用按钮列,因为它没有字段名
我现在通过为列设置一个字段名解决了这个问题,然后使用 GetColumnByFieldName 来访问它的 Visible 属性。
这可能不是最好的解决方案,但现在还可以