Visual Studio Combobox control usage

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a combobox that is loaded with last name from a table. I want to click
on the persons last name, and have all the ADO.NET bound textboxes on a form
load with the clicked persons data. I can do this rather easily in Access.
How can i do this in VB.NET/ADO.NET, I have manually bound the textboxes on
the form, the form uses a dataAdapter and dataset. I am stuck trying to get
this to work.
The underlying table has no ID's, it's strictly by last name.

Thanks Ed
 
Ed,

I would not use a combobox for that. In VBNet you have the listbox, that is
easier to understand for people. When you want to use a combobox you have at
least to set it to dropdownlist, otherwise the typed in text becomes
confusing because it is not in the datasource and to what has the binding
than to be set.

When you than have bound your datasource column members from your listbox to
the textboxes, it should in my opinion work.

When this does not work, feel than free to reply.

I hope ths helps?

Cor
 
OK. I will try it with a list box. So, you say, If I bind the list box
properly, then when I select a name from the list, the fields on the form
should refllect that record.
OK..I'll let you know later today.
 
Back
Top