Simon,
>Probably an obvious answer, but how do I set the primary key of a dataset to be a compound key where the two key fields are both integers?
You can actually specify this information at the business object level by setting the business object's PrimaryKeys array property. Check out the MM .NET Dev Guide topic "PrimaryKeys: The Primary Key Fields" for details.
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