[silverlight]How to customerize the readonly for each datagridcell
-
I have a entitycollection and assigned a readonly property for each property of the entity. So that I can define whether they can be modified in Datagrid. For example,for the same property NAME, it is allowed be be edited for some entities but others not. But seems there is not a DataGridCell.IsReadOnly in silverlight as in WPF. Anyone of you have met similar case ? or know that the silverlight 5 will get this supported?
-
I have a entitycollection and assigned a readonly property for each property of the entity. So that I can define whether they can be modified in Datagrid. For example,for the same property NAME, it is allowed be be edited for some entities but others not. But seems there is not a DataGridCell.IsReadOnly in silverlight as in WPF. Anyone of you have met similar case ? or know that the silverlight 5 will get this supported?
I am more familiar with WPF but I am not sure what you mean by DataGridCell.IsReadOnly. Are you templating the column cell and then accessing the IsReadOnly like such: Entity Binding
Main Object binding
If that is not available you should be able to use the DataGridTemplateColumn and set up your own binding.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.