Pre-Selecting Rows on UDTable

Product: PowerShell Universal
Version: 4.5.6

I have a table created with New-UDTable and I’m using the -OnRowSelection parameter. Is there any way I can programmatically select a row? i.e. load the table with certain rows already selected. So far it would seem to be not possible.

Thanks!

Also not sure if it’s possible, but I’d look at using Get-UDElement and then Set-UDElement to see if you can manipulate the SelectedRows property.

Thanks! I did take a look at it, if it’s possible I didn’t figure it out. I’ve bodged around it using a New-UDCheckbox in the table row which I can control programmatically.

1 Like