10-04 How to: Bind an XPCollection to the DataGrid(如何:将 XPCollection 绑定到 DataGrid)
The following example demonstrates how to bind a collection of Customer objects to the DataGrid control at runtime.
以下示例演示如何在运行时将客户对象的集合绑定到DataGrid控件。
Object Structure(对象结构)
The Customer class represents a single customer. Each customer can have multiple orders. Orders are represented by the Order class. Orders can be associated with a specific customer by creating a relationship between the Orders property in the Customer object (the primary key) and the Customer property in the Orders objec