PowerShell Tutorials : Making a GUI Part 9 - Data Grid

preview_player
Показать описание
Using the DataGrid component in a GUI (Graphical User Interface) with PowerShell. In this video I go over how to use a DataGrid in a powershell application inside of a GUI, I go over how to load in the data and also how to add a event handler.

Tags:
PowerShell
GUI
Programming
Scripting
Automating
JackedProgrammer
Coding
Рекомендации по теме
Комментарии
Автор

Absolute legend for showing me the "copy as path" option in the file explorer

jano.
Автор

Really appreciate, leant a lot about GUI from these videos.

sattaralamgeer
Автор

Thank you very much for your Tutorials,
they are really great!!!

mnamusik
Автор

I did really learn a lot from your Videos.
❤❤❤❤❤❤❤❤❤❤❤❤

mnamusik
Автор

Your videos rock! I have learned so much form them. Thank you!
Can you show how to sort on columns in the datagridview by clicking on the headers

nickwillhoite
Автор

amazing, thanks a lot. very nice learning video.

arminziaei
Автор

Hi jackedprogrammer
I've been playing around with different scripts based on this excellent tutorial, but I am wondering if it's possible to hide one or more columns in the datagrid, but still be able to refer to the col.value in other fields, just like your services sample.

When selecting row from the datagrid it should display the "hidden" column value together with i.e. Service name and -state in the form below the datagrid.

I've been trying with dg.columns[x].visibility but can't get it to work.

peterbdker
Автор

I know it's a while since you made this, but I am curious if it is possible to use the importexcel module in the powershell gallery into a datagrid, and then create a program to automate excel.

ulroxvladtepes
Автор

Hello This was a great tutorial. Thank you. I wrote a script that works, but being a new powershell coder, I don't think it is the most efficient script. Would you be open to analyzing the script? I am interested in learning to optimize my scripting.

Peaceutwo
Автор

Hi Jack(?), thank you for these videos. They have helped so much. I wonder if you can help me here. with the instruction you provided along with some other googling, I created a DataGrid where the first column has check boxes and files and file data in the other columns.. It is meant to let the user see the items selected then select which files they want to interact with. My question is, how do I get the information of the checked boxes back to an array so I can do some more processing?

ScootNewOrleans
Автор

Thank you very much.
It was very clear.
Could you please tell me why can't a datagrid directly display the content of an array or a an array of abjects?
Ex: datagrid. Itemssource = $array

In fact i am developing a Gui with many functions that will return different kinds if objects (usually string arrays or object arrays) but i want those results to be displayed on the data grid automatically.

Sitchad
Автор

Great tutorial! I'm interested, how would you set it so the data table updates in real time as you are typing into the filter box, instead of having to click on the button?

robo
Автор

Can you point me to right place for how to do datagridview updates?

markbaker