Information générale
Catégorie:
The Mere Mortals .NET Framework
Kevin,
>>In the MM JumpStart application for C#, Order Detail data grid is bound to Customer using the orderID. In the same example, how would you bind Order Detail to Customer if the join required the use of more than one field?
>Are you asking about situations where a primary key is composed of more than one column? If so, you can use the business object's PrimaryKeys property (which is a string array) rather than the usual Primary key field.
>For more information, check out the MM .NET Dev Guide Help topic "PrimaryKeys: The Primary Keys field".
I have a data grid on that contains two fields in which I want the child data grid to read and present the items that match those fields. I have built my form in the same manner as the example in the Jump-Start, and I have used the this.PrimaryKeys in the constructor of my business object. The problem is that I get a result that only looks at one of the two values.
Example:
Parent data grid contains a row that has the following two fields:
- CustomerID and
- CurrencyID
I want the child data grid to return all invoices for the CustomerID and CurrencyID.
When I run my application I get all of the records that match CustomerID, but not CurrencyID.
Theo
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement