How to set a template to a grid cell in VIBlend WPF DataGrid?
|
Article Information
|
Article relates to VIBlend DataGrid for WPF
|
How To
|
Create and set a DataTemplate to a grid cell.
|
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 DataTemplate which will be used as a CellDataTemplate
|
|
4. Apply the DataTemplate.
|
|
|