Master Detail with textbox and datagrid

G

Guest

Hello friends

I want to create one master-detail form with a textbox and a datagrid, where
I can put the id of one client on the text box and see his orders on the
datagrid.
I can create this form using one listbox and a datagrid, but I cannot create
this form using a textbox instead of listbox.
Can everyone give me a place where I can find one example of this using
forms in vb.net.

Thanks for help
 
C

Cor Ligthert

Bruno,

I think that you will not much samples for what you want, however it is
simple, I typed it roughly in this message. Don't forget to test the id when
they should be numeric.

In the loadevent
\\\
dim dv as new dataview(mytable)
datagrid1.datasource = dv
///
In the event you use
\\\
directcast(datagrid1.datasource, dataview).rowfilter = "myid column = ' &
mytextbox.text & "'"
'assuming the id is string
///

In my opinion should that be enough,

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top