XtraPivotGrid 动态数据集创建
我已经创建了动态 XtraPivotGrid,但表适配器和数据集是特定于 1(one) 表的。我希望能够从用户指定的表中获取数据,但如果不编写大约 2.5k 行代码(编写 IDE 在设计时创建的相同代码,但对于任何表),我看不到实现此目的的方法)。有人认为有更简单的方法吗?
I already have a dynamic XtraPivotGrid creation, but the table adapter and the dataset are 1(one) table specific. I want to be able to get data from a table specified by user, but I can't see a way of doing this without writing about 2.5k lines of code (writing the same code the IDE creates in design time, but for any table). Does anybody think in an easier way of doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在类似的情况下,我在设计时创建了 XtraGrid,但随后只是在运行时根据用户表选择更改了数据源。然后我使用 XtraGrid 的内置方法自动创建列。 DevExpress 上有一篇文章可能会有所帮助。
In similar situations I was creating the XtraGrid in design time, but then just changed the DataSource at runtime based on the user table selection. Then I was using the built in methods of XtraGrid to automatically create the columns. There is an article at DevExpress that might help.