How to use an editor and allow users to edit cells in VIBlend DataGrid for Silverlight?
|
Article Information
|
Article relates to VIBlend DataGrid for Silverlight
|
How To
|
Create DataTemplates and then apply them as grid cell editors.
|
Solution
|
To achieve this, follow these steps:
|
1. Specify the DataGrid's namespace.
|
|
2. Create Data Templates which represent a TextBox and CheckBox editors.
|
|
3. Create a new DataGrid instance and add its BoundFields. Set the CellEditTemplate property to point to the cellEditTextBoxTemplate.
|
|
|