I am using CSLA 4 and binding a datagrid to BusinessListBase -> BusinessBase and the "IsSelfBusy" property is getting displayed if i set the AutoGenerateColumns= true. I tried to trace it back and it seems like the BusinessBase class in the framework is missing the DataAnnotation attribute - [Display(AutoGenerateField = false)] on the IsSelfBusy property.
……………………………….
[Browsable(false)]
[Display(AutoGenerateField = false)]
public virtual bool IsDirty { get; }
[Display(AutoGenerateField = false)]
[Browsable(false)]
public bool IsNew { get; }
[Browsable(false)]
[Display(AutoGenerateField = false)]
public virtual bool IsSavable { get; }
[Browsable(false)]
//missing [Display(AutoGenerateField = false)]
public bool IsSelfBusy { get; }
[Display(AutoGenerateField = false)]
[Browsable(false)]
public virtual bool IsSelfDirty { get; }
[Browsable(false)]
[Display(AutoGenerateField = false)]
public virtual bool IsSelfValid { get; }
……………………………….
Thanks
Ranjini
Sounds like a bug - thanks for helping to find it.
Copyright (c) Marimer LLC