Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Add -GroupBy in UDGrid #1628

Open
mkellerman opened this issue May 3, 2020 · 0 comments
Open

Add -GroupBy in UDGrid #1628

mkellerman opened this issue May 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@mkellerman
Copy link

Would love to see a way to have a UDGrid with rows that show a grouping.

For example:

Day Invoice Total
January
2 0348 248.35
7 0349 126.14
18 0350 821.99
February
27 0351 643.50

So the data would already have a 'Month' property, and you could simply tell UDGrid to group the data by that value.

OR

You do whatever grouping you want in PS, and Out-UDGridData detects that the data is in a group, and uses the Name and the Group property to generate the UDGridData properly.

And the HTML is quite simple, since we already know the number of properties/header, all you need to add is:

<tr>
    <td colspan=3>January</td>
</tr>
@mkellerman mkellerman added the enhancement New feature or request label May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant