Straightaway. In my model I have a field DistanceTravelled , it is of type double. Now whenever i want to display it using @Html.DisplayFor helper method, then I want the distance travelled value to be appended by "Km". For Example:
123 Km instead of 123
I can do that by placing Km at the end of @Html.DisplayFor helper. But I was hoping that there must be some data annotation attribute or some other simpler way.
Thanks for trying to help. :)