winapp: datagridview cell reference?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    winapp: datagridview cell reference?

    i would like to do something like this with a datagridview...

    for i as integer = 0 to dgv.rowcount - 1
    if dgv.rows(i).col umns("Name").te xt = "" then
    msgbox("please enter the name in the dgv cell.")
    exit sub
    else
    msgbox("thanks for placing the names on each row.")
    end if
    next

    also, after the msgbox, i would like to place the cursor to the cell with the blank name.

    please good soul help correct my code. thank you.
  • nev
    Contributor
    • Oct 2007
    • 251

    #2
    nevermind, i got it myself...

    dgv.rows(i).cel ls(i).value

    Comment

    Working...