How to Edit DataGrid Cell in Silverlight
With the Microsoft Silverlight application framework, you can enter code for running Internet applications, including graphics, animations and other multimedia controls. The DataGrid control in Silverlight allows you to add information into various cells. You can manually edit a DataGrid cell at any time, and you can disable the editing after you finish making changes. It's important to carefully edit the scripting code so that you don't corrupt the application.
Instructions
-
-
1
Click the "Start" button in the lower left-hand side of your desktop and move your mouse over the "All Programs" option.
-
2
Click the "Microsoft Silverlight" application and locate the "DataGrid" object within your Web page code.
-
-
3
Locate the code for the cell you want to edit and make your edits. While you edit, the code will reflect the PreparingCellForEdit event for entering edit mode.
-
4
Press the "Enter" key on your keyboard. This will commit the edit for the cell and automatically add the CommitEdit script.
-
5
Enter "IsReadOnly=" into the open DataGrid expression and enter "True" after the equal sign. The DataGrid will become read-only after you have made your edit.
-
1
