DataGridView Image

I have a DataGridView that has the following code on load

DataGridView1.Item(0, 0).Value = Image.FromFile(DataGridView1.Item(4, 0).Value)

How can I apply this code to all of the rows in the DataGridView instead of the first row as well as account for a null value in the 4th column??
LVL 1
H-SCAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

the_bachelorCommented:
Why dont you just do a Loop
somethn like

For rowIndex as Integer = 0 to DataGridview1.Rowcount - 1
    'do whatever Here
Next
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
H-SCAuthor Commented:
the_bachelor,

how can I incorporate that into what I have with the following

DataGridView1.Item(0, 0).Value = Image.FromFile(DataGridView1.Item(4, 0).Value)
0
H-SCAuthor Commented:
the_bachelor,

any ideas on this one...?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.