Hi All,
I have a silverlight datagrid control bound to a Dictionary<string, string>
with autogenerate columns set to true.
In the AutoGeneratingColumn
event i change the column Header
and IsReadOnly
Properties as required(column bound to dictionary value is editable).
if ( string.Compare( e.Column.Header.ToString( ).ToLower( ), "key" ) == 0 )
{
e.Column.Header = "Property Name";
e.Column.IsReadOnly = true;
}
else
{
e.Column.Header = "Property Value";
e.Column.IsReadOnly = false;
}
All this works as intended but when i edit a cell and tab out i get a "Property set method not found."
message next to the cell and it does not allow me to modify the grid after that.