从 UltraGrid 获取子行
我在 UltraGrid 中有主/详细信息关系。当用户单击行时,我想在新的 UltraGrid 中显示子行。我该怎么办?谢谢
I have master/details relation in UltraGrid. And I want to show child rows in new UltraGrid when user click on row. How can I do? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以处理第一个网格的 AfterRowActivate 或 AfterRowSelected 事件,然后使用适当的数据填充第二个网格。
如果您在第二个网格中拥有所有父行的数据,您还可以适当地设置列过滤器,如下所示:
如果您使用列过滤器,请记住重用现有过滤器或在添加新过滤条件之前清除过滤条件。
You could handle the AfterRowActivate or AfterRowSelected events of the first grid and then either populate the second grid with appropriate data.
If you have data of all Parent rows in the second grid you can also set the column filter apropriatly like this:
If you use ColumnFilters remember to reuse existing filters or clear the filter conditions prior to adding new filter conditions.