In the last step you added a data model named Product. In this step you will generate a collection of data objects using this model, and set this list to display in the C1DataGrid control.
To display a collection of data objects in the C1DataGrid control, complete the following steps:
C# |
Copy Code
|
---|---|
List<Product> _products = new List<Product>(); for(int i = 0; i < 100; i++) { _products.Add(new Product()); } |
ProductsDataGrid.ItemsSource = _products.