Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 4 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I have a GUI application designed that includes a button and a datagridview box. The button click event loads the datagridview box. Unfortunately I can't get the datagridview box to populate with information
You can see what the form outputs in the Datagridview_Click_Output.png attachment in this post
You can see what the command outputs in the PS_Output.png
Can someone help me get this into a format that loads the datagridview box with the information like it's output when running the command in Powershell?
Attachments
PS_Output.PNG (13.3 KiB) Viewed 1268 times
Datagridview_Click_Output.PNG (22.9 KiB) Viewed 1268 times
The output of your query is text and not objects. You muse use a command based of OLEDB.Net and the System.Data.OleDbClient. The sqllite EXE cannot create objects.
This topic is 6 years and 4 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.