Is any way to hide calculated column in edit mode?
I have age calculated then grid read ajax data
Age = (human.Dateofbirth > DateTime.Now.AddYears(-(DateTime.Now.Year - human.Dateofbirth.Value.Year))) ? (DateTime.Now.Year - human.Dateofbirth.Value.Year) - 1 : DateTime.Now.Year - human.Dateofbirth.Value.Year
Column shows age in grid but also appears in pop up edit mode
I know I can catch event and dynamically hide icon just wander if grid can aware of calculated column
in model:
[ReadOnly(true)]
[Editable(false)]
[DisplayName("Age")]
public int Age
{
get;
set;
}
I have age calculated then grid read ajax data
Age = (human.Dateofbirth > DateTime.Now.AddYears(-(DateTime.Now.Year - human.Dateofbirth.Value.Year))) ? (DateTime.Now.Year - human.Dateofbirth.Value.Year) - 1 : DateTime.Now.Year - human.Dateofbirth.Value.Year
Column shows age in grid but also appears in pop up edit mode
I know I can catch event and dynamically hide icon just wander if grid can aware of calculated column
in model:
[ReadOnly(true)]
[Editable(false)]
[DisplayName("Age")]
public int Age
{
get;
set;
}