In the code below you'll see my version of a rowfilter. It works fine, but when I close my form I get the following execption:
(valuateException was unhandled)
De bewerking = kan niet worden uitgevoerd op System.Decimal en System.String.
translation ~ the action = can not be performed on System.Decimal and System.String
Why is setupgrid() activated when I close the form?
The value that represents e is the same string everytime I close and the value that represents bron = empty string ""
the code:
Private Sub setupGrid(ByVal e As String, ByVal bron As Object)
(valuateException was unhandled)
De bewerking = kan niet worden uitgevoerd op System.Decimal en System.String.
translation ~ the action = can not be performed on System.Decimal and System.String
Why is setupgrid() activated when I close the form?
The value that represents e is the same string everytime I close and the value that represents bron = empty string ""
the code:
Private Sub setupGrid(ByVal e As String, ByVal bron As Object)
Dim dvArtikels As DataView = New DataView(dtArtikels)
dvArtikels.RowFilter = e & "='" & bron & "'" (the exception refers to this line)
DataGridView1.DataSource = dvArtikels
End Sub