在 TcxGrid 中创建执行时间列,就像 delphi 中的 tDbGrid 一样
我使用 TcxGrid 但无法在执行时创建字段 因为我有一个数据透视查询并且列是可变的
我可以像 tDbGrid 一样填充 cxGrid 吗?
I use TcxGrid But I cant create fields on execution time
because I have a pivot query and columns are variable
Can I fill cxGrid like tDbGrid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我这样解决了问题
I solved the problem like this
我喜欢使用 TcxGrid.DataController.CreateAllItems 方法来创建数据源中存在的所有列。它采用一个布尔参数,您可以使用该参数决定是添加所有列还是仅添加缺少的列。
I like to use the TcxGrid.DataController.CreateAllItems method which creates all columns that exists in the datasource. It takes a boolean parameter with which you can decide wether to add all columns or only those missing.
尝试这样的事情:
Try something like this: