Search found 318 matches

by sekou2331
Fri Apr 01, 2022 2:24 pm
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

Thanks for all your. I am seeing what you are saying.
by sekou2331
Fri Apr 01, 2022 1:09 pm
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

Ok will read up on it. If I am getting what you are saying. I cant add any array to the combo manually and it has to be listed in the items array already. But the attach kind of does what I want. If you look at the code you should be able to see what I am trying to do. I am trying to add two differe...
by sekou2331
Fri Apr 01, 2022 4:31 am
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

OK I am sorry but I don't know if you wanted this to have errors to start. Also I am noticing none of your columns are combo boxes. I attached what I am trying to do. ERROR: Cannot index into a null array. Dem-CellValueChanged.psf (10, 2): ERROR: At Line: 10 char: 2 ERROR: + $this.Rows[$_.RowIndex]....
by sekou2331
Thu Mar 31, 2022 4:05 pm
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

Ok I understand but even if I do the below it is the same error. Also I was using a combo box for the cell I even tired the DropDownButton which both should except an array. I am using a row of DropDownButtons so that the user can choose from an array of string for each cell. I will read what you ha...
by sekou2331
Thu Mar 31, 2022 3:27 pm
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

When I am adding this line I am running into the attached error. I ran debug and soon as I use the Value change event the error comes and Powershell studio does not give me anything. When I kill it I get nothing as well. 2022-03-31 17_50_51-insert.png $datagridview1_CellValueChanged=[System.Windows....
by sekou2331
Thu Mar 31, 2022 6:37 am
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

Understood. So my underlying issue here is how do I populate a cell in the current row I am in from another cell in that same row?
by sekou2331
Wed Mar 30, 2022 8:14 am
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

Re: DataGridview Combobox error

It looks like when I go to the next row I am unable to populate it correct it will populate the one above instead of the on I am on.
by sekou2331
Wed Mar 30, 2022 7:35 am
Forum: PowerShell GUIs
Topic: DataGridview Combobox error
Replies: 14
Views: 2215

DataGridview Combobox error

Hi, I have created a Datagridview with columns that are combo boxes. Each column dependent on each other for data in the row. for example. When populate column 0 it will then populate column 1 then what ever is in column 1 will populate column 2. Also when I click on the first row it automatically m...
by sekou2331
Mon Mar 01, 2021 6:43 am
Forum: PowerShell
Topic: Exit a function
Replies: 2
Views: 5667

Exit a function

What is the best way to exit a function to move to the next function? Is it return or break. Read break to is to come out of a loop and return is to come out of a function is this true. For example, say the below is in a function if the folder doesn't exist I want to come out of the current function...
by sekou2331
Sat Jan 16, 2021 7:36 pm
Forum: PowerShell
Topic: INI file
Replies: 10
Views: 6389

Re: INI file

Thanks wanted to make sure.