Search found 4 matches

by SondelaConsult
Wed Jun 05, 2019 11:50 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 2293

Re: Unable to get datagrid updated.

Thanks .. That helps. in terms of its no longer errroing. but the table is completely blank.
by SondelaConsult
Wed Jun 05, 2019 8:03 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 2293

Re: Unable to get datagrid updated.

The following query is wrong. You cannot set a wildcard and use "As Names". You must specify a specific field by name. Ok thanks So I tried that but still get an error. This is my line. $Results = Invoke-Sqlcmd -ServerInstance localhost -Database playpen -Query "SELECT FirstName As N...
by SondelaConsult
Wed Jun 05, 2019 7:25 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 2293

Re: Unable to get datagrid updated.

Thank you.. I Have tried that but still get the error ERROR: ERROR: Exception calling "AddRange" with "1" argument(s): "Value cannot be null. ERROR: Parameter name: dataGridViewRows" Name Test.psf (43, 2): ERROR: At Line: 43 char: 2 ERROR: + $datagridview1.Rows.AddRange...
by SondelaConsult
Wed Jun 05, 2019 5:14 am
Forum: PowerShell GUIs
Topic: Unable to get datagrid updated.
Replies: 9
Views: 2293

Unable to get datagrid updated.

Hello I am trying to pull some data from an SQL Database into a DataGridView. But I am not getting an ouput and get an error. what is wrong with my code. $buttonAddData_Click={ #TODO: Place custom script here $name = $textbox1.Text $LastName = $textbox2.Text $DisplayName = $textbox3.Text $insertquer...