Search found 293 matches

by Lembasts
Thu Jun 11, 2020 8:28 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 306

Re: datagridview - ensure checkbox value is correct

The value always tells you the state of the checkbox even when the row has not been committed. The data row may not be the same until the edit of edit or a commit. A change of focus will sync this. No matter what anyone says that is teh way it works. It is the way it is defined and it is how we hav...
by Lembasts
Thu Jun 11, 2020 7:17 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 306

Re: datagridview - ensure checkbox value is correct

This is interesting:
https://www.codeproject.com/Tips/777492 ... tagridview

That basically says that the value field is pretty much meaningless if you want to retrieve rows where boxes have been checked.
by Lembasts
Thu Jun 11, 2020 6:30 pm
Forum: PowerShell Studio
Topic: Constant flickering of wait cursor - its back
Replies: 4
Views: 235

Re: Constant flickering of wait cursor - its back

OK so when I fixed the issue in the random runtime error thread, my cursor flickering went away too.
something about different versions of psf files?
by Lembasts
Thu Jun 11, 2020 6:27 pm
Forum: PowerShell GUIs
Topic: datagridview - ensure checkbox value is correct
Replies: 15
Views: 306

Re: datagridview - ensure checkbox value is correct

Why not just test the "Checked" value of the cell? It will always be set even if the table hasn't been updated. I have looked at the object in detail and cannot find the 'Checked' value. e.g. $dgv.rows[x].cells[y] has a value property but I cannot find the checkbox object to check its checked value.
by Lembasts
Thu Jun 11, 2020 6:22 pm
Forum: PowerShell GUIs
Topic: Understanding CheckedListBox controls
Replies: 13
Views: 834

Re: Understanding CheckedListBox controls

an example would be loading the checkedlistbox like so: $checkedlistboxfiles.DisplayMember = "filename" $checkedlistboxfiles.items.addrange(@($fileobject)) This assumes you have a $fileobject with a property called filename. You might then have a button that wants to do something to all the files th...
by Lembasts
Thu Jun 11, 2020 6:06 pm
Forum: PowerShell Studio
Topic: Random runtime error
Replies: 2
Views: 168

Re: Random runtime error

Weird requires weird fixes.
I opened every file in my project, deleted a blank line from each and saved them all.
Half of them had messages about converting to new version.
Problem has gone.
by Lembasts
Thu Jun 11, 2020 2:44 pm
Forum: PowerShell Studio
Topic: Random runtime error
Replies: 2
Views: 168

Random runtime error

To help you better we need some information from you. *** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. *** Product, version and build: 178 32 or 64 bit v...
by Lembasts
Thu Jun 11, 2020 2:26 pm
Forum: PowerShell Studio
Topic: Constant flickering of wait cursor - its back
Replies: 4
Views: 235

Re: Constant flickering of wait cursor - its back

Yes - its just moving the cursor to areas outside of the script and output windows. i.e. the ribbon, project, object browser, functions etc.
by Lembasts
Wed Jun 10, 2020 6:22 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 194

Re: display only specific rows in datagridview

Whilst the Microsoft Docs are a great resource they are lousy at teaching stuff for beginners.
If one could learn everything from the MS docs then one wouldnt need forums like this or stackoverflow etc...
And Sapien shouldnt have to offer classroom training...
by Lembasts
Wed Jun 10, 2020 5:26 pm
Forum: PowerShell GUIs
Topic: display only specific rows in datagridview
Replies: 8
Views: 194

Re: display only specific rows in datagridview

You've already told me :-)
Im telling them.
That's another reason I use dgvs over checkedlistboxes - the rowfilter is awesome!