My app was throwing a no value at index 1 error that Microsoft told me was caused by a bug in the timing of the defaultview filter change. To fix this, they commented out the following:
.DefaultView.RowFilter = "TDL = '" + scannedMember.TDL + "'"
and replaced it with the following:
Private Sub ChangeRowFilter()
DsMembers.Members.DefaultView.RowFilter = dvFilter
End Sub
and they call this subroutine via the following:
dgrOutput.BeginInvoke(New MethodInvoker(AddressOf ChangeRowFilter))
I can't seem to get a grasp on how to change the filter while the program is running. I've tried setting the filter to a private variable and then just change it when need be and call the beginInvoke command again. Unfortunately, the program seems to hang the second time the beginInvoke in called. Can anyone help? Thanks a million!
.DefaultView.RowFilter = "TDL = '" + scannedMember.TDL + "'"
and replaced it with the following:
Private Sub ChangeRowFilter()
DsMembers.Members.DefaultView.RowFilter = dvFilter
End Sub
and they call this subroutine via the following:
dgrOutput.BeginInvoke(New MethodInvoker(AddressOf ChangeRowFilter))
I can't seem to get a grasp on how to change the filter while the program is running. I've tried setting the filter to a private variable and then just change it when need be and call the beginInvoke command again. Unfortunately, the program seems to hang the second time the beginInvoke in called. Can anyone help? Thanks a million!