it sounds like homework but i will help you a little bit...
For row As Integer = 0 To DataGridView1.Rows.Count - 1
For column As Integer = 0 To DataGridView1.Columns.Count
If IsDBNull(DataGridView1.Rows(row).Cells(column).Value) Or String.IsNullOrEmpty(DataGridView1.Rows(row).Cells(column).Value) Then
End If
Next
Next
With this code you can check each cell.
Design a new WinForm, with a textbox ....
define: public newValue as string = ""
add the ok button click eventhandler -> newValue = textbox1.text...
and at the last line Me.DialogResult = Windows.Forms.DialogResult.OK
at the ToDo section you have to add a litte bit code:
dim nForm as new XXXXX
if nForm.ShowDialog() = Windows.Forms.DialogResult.OK Then
datagridview1.rows(row).cells(column).value = nForm.newValue
End IF
And then you can write the datagridview back to the database.. Use google... ;)
There are many code-examples..
Have fun ;)