471,339 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

Visual Studio Combobox control usage

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
--
Thats one small step for man....
Jul 21 '05 #1
2 4355
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


Jul 21 '05 #2
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.

"Cor Ligthert" wrote:
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


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Bruno Jouhier [MVP] | last post: by
2 posts views Thread by Ed From NY | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.