Page 1 of 1

GUI equivalent of out-gridview?

Posted: Thu Jan 19, 2023 7:40 am
by STM001
Hello everyone,

I have a powershell script that use |out-gridview. This script show a pop (out-gridview) with possibility of filtering by each column and text search. I would like to reproduce this but in a GUI. Is there something like it in powershell studio? I tried gridview but there's not filtering option for the user.

Thank you

Re: GUI equivalent of out-gridview?

Posted: Fri Feb 10, 2023 9:17 pm
by pshelltx
Sapien PowerShell has a built-in snippet called ConvertTo-DataTable that can take a gridview and create an associated DataTable. Once you have the more powerful DataTable object created you can add the mouse event "ColumnHeaderMouseClick" to your gridview and take advantage of sorting capabilities associated with DataTable object.

LazywinAdmin has a good writeup, Bing search it up.

Hope that helps you.