1
Answer

BindingSource.Filter

André

André

16y
7.3k
1

H1, Using VB Net (2005, Access (2003) in Windows Forms, in my application there are a datagridview with 4 datarows and 2 listBox. My database has 3 tables EX: T1=Person, T2= Services and T3=Pers_Serv as a joint table. Table Person has 4 persons, table Services has 6 services and has 2 fields AS (Available Service and Selected Service) I have use the wizards to build the form, so I have the 4 objects ,dataset, TableAdapter, BindingSource, BindingNavigator, +  TableAdapter and BindingSource1 for the listboxes. What I want to do is when I make a selection changed on the the datagridview I like to display in 1 listbox the Available_Service and in the other the Selected Service. I read on the web that I should use the Filter property of the BindingSource, I do not know how this is done ,so if anyone knows how  please tell, better show me how with maybe a small app. Hoping someone can help me. Thank you in advance.

 

Answers (1)
0
Bechir Bejaoui

Bechir Bejaoui

NA 20.1k 5.3m 16y

Take a look at my article about the issue it is  written in C# but nevertheless you can profit of it to attempt the goal, don' t fotget to give your rate and comments