Hi,
I have DataRecords with property, which "knows" if it should be editable for the user or not. Something like:
public class StringProperty
{
public string StringValue { get; set; }
public bool AllowEdit { get; private set; }
}
So I create a Field with Binding to the StringProperty property and a Template to display it and it works so far. But how can I bind the AllowEdit property of each cell (or CellValuePresenter) to the AllowEdit property of the data? (The AllowEdit is set by the business logic according some rules, such as expiration date, etc...).
Thanks in advance,
George
HI George,
I am attaching a sample that may help you resovle your issue.
Sincerely,
Matt
Developer Support Engineer
Hi Matt,
this works fine. But it uses the IsEnabled Property of the CellValuePresenter. Because of the look and feel, I would like to use the IsEditingAllowed, which is unfortunately a ReadOnly property. Can you tell me, what sets the IsEditingAllowed property? How can I control it?
Best Regards,