Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
00878482
Message ID:
00878768
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform