Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant