Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the PK of the main table in a multitable view
Message
 
À
16/12/2007 10:20:48
John Thomason
King Richard Veterinary Centre
Leicester, Royaume Uni
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01276165
Message ID:
01276403
Vues:
27
John,

>I have a table which is used to store information about club members attendance at meetings. It consists of a PK, meetingid (an FK to the meetings table) and memberid (an FK to the members table).
>
>To view the full details I use a multitable view that uses the members and meetings tables as lookups.
>
>My question is how can I retrieve the PK of the meetingattendance table when I click on a record in the view. The datagridview is populated by specifying the datasource as the binding source of the view. I obviously can’t set the binding source to the main table (meetingattendance) so I’m unable to use GetCurrentRowPK()

Maybe I'm missing the point, but can't you just include the table's primary key in the view?

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform