Search found 65 matches
- Mon Apr 20, 2020 8:06 am
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Re: Datagridview Selection
Correction, I DO want the adjacent cell from the selected cell. See screen shot below. The blue cell is the selected cell, the red arrow points to the cell's value I also need to grab along with the selected cell, hence, I need the "adjacent" cell. In my scenario, the adjacent cell will al...
- Mon Apr 20, 2020 6:04 am
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Re: Datagridview Selection
Disregard, I was able to figure it out. I just manually get the RowIndex and grab the next cell over from the selection, kept it simple. For reference I am using the code below, thanks for the assistance. $cell = $datagridview1.SelectedCells[0] $RowIndex = $cell.RowIndex $adjacent = $datagridview1.R...
- Mon Apr 20, 2020 5:03 am
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Re: Datagridview Selection
It doesn't even appear to get the adjacent cell. I get that error when I run the code you suggested verbatim.
- Fri Apr 17, 2020 2:05 pm
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Re: Datagridview Selection
Looks like I am still failing. I need to get the adjacent cells value, not just index, looks like I didn't mention that in my original post. Attachments included.
- Fri Apr 17, 2020 1:50 pm
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Re: Datagridview Selection
Ah, ok missed that. I was still using it's value. Thanks bud.
- Fri Apr 17, 2020 1:40 pm
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Re: Datagridview Selection
Am I missing something? Using the following...
$DisplayName = $datagridview1.SelectedCells[0].Value
$Database = $datagridview1.Row[$DisplayName.RowIndex].Cell[$DisplayName.CellIndex + 1]
$DisplayName = $datagridview1.SelectedCells[0].Value
$Database = $datagridview1.Row[$DisplayName.RowIndex].Cell[$DisplayName.CellIndex + 1]
- Fri Apr 17, 2020 11:58 am
- Forum: PowerShell GUIs
- Topic: Datagridview Selection
- Replies: 12
- Views: 3215
Datagridview Selection
Looking for a way to grab the cell adjacent to the user selection in my Datagridview.
I am using "$Selection = $datagridview1.SelectedCells[0].Value" to get the selected cell, but not sure what I can use to grab the cell next to it also, as I will need both values.
I am using "$Selection = $datagridview1.SelectedCells[0].Value" to get the selected cell, but not sure what I can use to grab the cell next to it also, as I will need both values.
- Thu Oct 31, 2019 8:35 am
- Forum: PowerShell
- Topic: Implicit remoting returned in text
- Replies: 34
- Views: 17612
Re: Implicit remoting returned in text
Thanks, I'll give it a read.
- Thu Oct 31, 2019 7:50 am
- Forum: PowerShell
- Topic: Implicit remoting returned in text
- Replies: 34
- Views: 17612
Re: Implicit remoting returned in text
Your correct, the delay would be small, however, I try to keep all my processes the same when developing apps, just good practice. In this case though, your probably right, might be worth it to just have it run in the foreground and have the application freeze when it runs. It looks like the string ...
- Thu Oct 31, 2019 7:29 am
- Forum: PowerShell
- Topic: Implicit remoting returned in text
- Replies: 34
- Views: 17612
Re: Implicit remoting returned in text
Ok, thanks for the assistance. Instead of going through all this to remove a simple line of text, I will just go about it another way and have the form open the URL to the SFB chat room for the description. There was no way I could have known all this was going to be involved.
Thanks again.
Thanks again.