Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / May 2006

Tip: Looking for answers? Try searching our database.

displaying generated field and binding to an acutal field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gus M - 29 May 2006 01:41 GMT
Hi,

I've got a small problem I can't find an answer to. I need to be able
to display multiple items in a combobox from a SQL generated field
(such as (SELECT     RTRIM(per_surname) + ', ' + RTRIM(per_first_name)
AS company_manager) and bind to the com_manager_per_id field (a FK to
per_first_name and per_last_name) in another table (company).

As I'll only have the first and last name of that person (not unique) I
need to store the per_id primary key against the company table so I can
do a look up later for the "company manager".

I can't find a way to do with using databindings although it seems like
it should be able to do what I want. Is this possible or will I have to
do this manually?

Any help would be great, and if I haven't been clear in what I'm asking
please tell me and I'll try and explain it in a different way.

Thanks,
Gus.
Gus M - 29 May 2006 01:55 GMT
just to clarify, I need to:

link "com_company_manager" (a FK to the person table of type int) to
per_id in the person table (PK of that table), where the combo will
display all the relavent per_id's in the format "last name, first name"
so the user can choose the one he/she wants.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.