Is there a way to get the field name of a property in code behind? Say I have a property with name - 'EaseOfAccess' and its field name as -'Ease of Access'. I need to display the field name for this property.Please can anyone let me know if this is acheivable?
Yes, the PropertyData class exposes the TranslateDisplayName() method that you can use for this. To get the PropertyData for a property just use the Property collection of your PageData object and string literals for your property name.
CurrentPage.Property["MyProperty"] // this return a PropertyData object of your property
It worked!! Thanks Frederik.