Help with Datagridview Column Data

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
SaloJr
Posts: 1
Last visit: Tue Apr 04, 2023 1:37 pm

Help with Datagridview Column Data

Post by SaloJr »

New to Powershell Studio.

I have data in a 2 column datagridview. The first column contains AD Users (samaccountnames) and i'd like to be able to parse through that 1st column to verify the users in that column.

I cannot get the syntax correct but essentially i'd like to get the data from the first column in the datagridview.

I get the feeling that there's a really simple answer here but it's escaping me.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Help with Datagridview Column Data

Post by jvierra »

Just enumerate the rows of the grid and reference the column by name or number.
This topic is 6 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked