You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/grouping-data-using-radspreadprocessing.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ res_type: kb
10
10
ticketid: 1692310
11
11
---
12
12
13
+
<style>
14
+
img[alt$="><"] {
15
+
border: 1pxsolidlightgrey;
16
+
}
17
+
</style>
18
+
13
19
## Environment
14
20
15
21
| Version | Product | Author |
@@ -18,16 +24,24 @@ ticketid: 1692310
18
24
19
25
## Description
20
26
21
-
This article shows how to generate a worksheet with grouped data having a flat collection of records as an input.
27
+
This article shows how to generate a worksheet with **grouped** data having a **flat** collection of records as an input.
28
+
29
+
>caption Flat vs. Grouped Data
30
+
31
+

22
32
23
33
## Solution
24
34
35
+
Note that if you want to perform grouping, this data operation should be performed separately and then populate the Worksheet with the grouped rows.
36
+
37
+
Once you have the grouped data, then, the SpreadProcessing functionality (in a similar way like MS Excel) allows you to assign the outline level to all rows that belong to the same group. To make it clearer, let's have the following example: a flat list of products stored in CSV data for simplicity.
38
+
25
39
To group data in a worksheet, follow these steps:
26
40
27
41
### Preparing Grouped Data
28
42
29
-
1. Perform grouping on your flat data before populating the worksheet.
30
-
2. Use LINQ or other methods to group rows based on a specific column.
43
+
1. Perform grouping on your flat data (e.g. Northwind.Products) before populating the worksheet.
44
+
2. Use LINQ or other methods to group rows based on a specific column (e.g. CategoryID).
31
45
32
46
Use the following code snippet to group rows in a worksheet:
33
47
@@ -163,12 +177,8 @@ Use the following code snippet to group rows in a worksheet:
163
177
}
164
178
```
165
179
166
-
167
-
168
180
Modify the example to suit your specific data structure and requirements.
0 commit comments