OK so here's my problem. I'm new to wpf. using entity framework 4.0. i have 9 collectionviews (I'm currently leaving out 3 of them)
5 of them are bound to the same StaticResource- 'RcViewSource' , however they have different paths leading to different tables within the main collectionview.
I need to be able to sort/filter the main collectionview by 5 of the other views, which are nothing but checkboxes. I know I need to come up with some kind of method to handle the "ischecked" event but I have no clue and it's driving me insane.So far I've come up with:
Private Sub FilterCourses(sender As Object, e As FilterEventArgs)
Dim c As CoursesTbl = TryCast(e.Item, CoursesTbl)
If (c Is Nothing) OrElse c.Appetizers = False OrElse c.BreadsRolls = False OrElse c.Desserts = False OrElse c.Entrees = False OrElse c.SaucesGravies = False OrElse c.SideDishes = False OrElse c.SoupSalad = False Then
e.Accepted = False
Else
e.Accepted = True
End If
End Sub
but I'm not sure if this is right... it only handles 1 of the other views. I still have 4 more. How do i combine the queries? Lambda Expressions?
Please someone help me I've been working on this 1 particular problem for over 3 months now and my brains fried.
Any and all suggestions, posts I could read, tutorial videos would be fantastic....Examples actually using checkboxes as data filters (maybe 2 going to different tables...) would be wonderful also! I would be beyond grateful...
Thanks.