Traverse all lines of a Datagridview

Asked

Viewed 1,330 times

3

I have this for:

For Each DataGridViewRow In F_Principal.DataGridView2.Rows

How do I select queue by queue? There is way to see how many times the queue is repeated?

1 answer

3

I was able to answer by myself, but I leave the answer here anyway to anyone.

For Each lel As DataGridViewRow In F_Principal.DataGridView2.Rows
       MsgBox("Index : " & lel.Index)
Next

The "lel" variable is going to be the current line, and you can take out any hints you want.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.