Master Detail with textbox and datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top