Reputation: 125
Problem is a little weird. My datasource object has some boolean properties and I want to create a table with the number of rows based on values of these properties. For example if values are True, True, False I need 2 rows. How to accomplish such task?
Upvotes: 1
Views: 4302
Reputation: 3979
You can use a XRTable. There you can dynamicly add rows easily. Just create XRTableRow object. Fill it with some XRTableCell objects and then say:
XRTable.InsertRowBelow();
So you can run over your objects and foreach boolean = true, you create one row and insert it into your table.
Upvotes: 1
Reputation: 3276
I suggest you to use XtraReportBase.FilterString Property to filter rows from your data source.
Upvotes: 0