简体   繁体   English

基础设施-Ultragrid-将行分组为类别

[英]Infragistics - Ultragrid - Group rows into categories

I would like to group rows in categories like that: 我想将行分为以下类别:

例

I know how to do this with OutlookGroupBy but its not possible to put the same row into severals categories 我知道如何使用OutlookGroupBy执行此操作,但无法将同一行放入几个类别

So is there a way to group rows while beeing possible to put the same row into several categories at the same time? 那么,有什么方法可以对行进行分组,同时又可以将同一行同时放入多个类别?

My ultragrid is bound to a dataset 我的超网格已绑定到数据集

First thing coming to mind is to add another table to your dataset and create category rows in the new table, then add a data relation between the two and use the category table as datasource for the grid. 首先想到的是向数据集中添加另一个表,并在新表中创建类别行,然后在两者之间添加数据关系,并将类别表用作网格的数据源。

Thus you effectively build your own "groupings". 因此,您可以有效地建立自己的“分组”。 It's a little more work but my best guess to get the grid do this is to use creation filters - which would be a lot more difficult and time consuming. 要做更多的工作,但我最好的猜测是使网格做到这一点是使用创建过滤器-这将更加困难且耗时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM