Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
Binding the AllowEdit Property of a Field for each separate DataItem
posted

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

 

Parents Reply Children
No Data