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.
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.
Comment