Código:
Dim valor As String = ""
For Renglones As Integer = 0 To ProfesoresDataGridView.RowCount - 1
For Columnas As Integer = 0 To ProfesoresDataGridView.ColumnCount - 1
valor = ProfesoresDataGridView.Item(Renglones,Columnas).Value.ToString
Next
Next
For Renglones As Integer = 0 To ProfesoresDataGridView.RowCount - 1
For Columnas As Integer = 0 To ProfesoresDataGridView.ColumnCount - 1
valor = ProfesoresDataGridView.Item(Renglones,Columnas).Value.ToString
Next
Next
Al momento de depurar me aparece este mensaje "Referencia a objeto no establecida como instancia de un objeto"