Why am I getting a System.StackOverflowException when assingning a value to avariable.
I have used the same process on other forms in this project and they work fine, don't know why this is happening.
This is the error "An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll"
the exception hapens on this line link = Me.dgvShipping.Rows(e.RowIndex).Cells("Link").FormattedValue
Private Sub dgvShipping_CellFormat(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles dgvShipping.CellFormatting
Dim columname As String = Me.dgvShipping.Columns(e.ColumnIndex).Name
Dim link As String = ""
Try
If Not IsDBNull(e.Value) Then
link = Me.dgvShipping.Rows(e.RowIndex).Cells("Link").FormattedValue
Select Case columname
Case "Address"
If Me.dgvShipping.Rows(e.RowIndex).Cells("Reschedule").FormattedValue Then
e.CellStyle.BackColor = Color.Yellow
End If
End Select
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub