How to bind the VIBlend Silverlight Data Grid?
|
Article Information
|
This article relates to the VIBlend DataGrid for Silverlight. It contains a complete example which illustrates how to create a custom data source and then bind the DataGrid control to it.
|
How To
|
Bind the DataGrid to business objects
|
Solution
|
To achieve this, follow these steps:
|
1. Specify the DataGrid's namespace.
|
|
2. Create a new DataGrid instance and add its BoundFields.
|
|
3. Create a class named EmployeeSalesRecord.
|
|
4. Create string arrays with sample data.
|
|
5. Prepare DataGrid's data.
|
|
6. Bind the DataGrid.
|
|
|
|