Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delegate/timing - WAY over my head...

Status
Not open for further replies.

herbal

Programmer
Jul 10, 2003
36
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top