Código PHP:
Sub calcular()
Dim numero As Integer = 0
Dim fila As Integer = 0
Dim columna As Integer = 0
'La variable f representara las filas y se recorreran
For f As Integer = 0 To dgvlista.Rows.Count - 1
'La variable c representara las columnas y se recorreran
For c As Integer = 0 To dgvlista.Columns.Count - 1
'Si el valor de la celda es mayor a la variable numero
If Convert.ToInt32(dgvlista.Rows(f).Cells(c).Value.ToString()) > numero Then
'Guardo el numero, su fila y columna
numero = Convert.ToInt32(dgvlista.Rows(f).Cells(c).Value.ToString())
fila = f
columna = c
End If
Next
Next
lblmayor.Text = numero
lblfila.Text = fila
lblcolumna.Text = columna
End Sub