GridView Filter
I would like to display customize name when binding enum property to a column. Right now it would display the Enum Name e.g. “TimeUnit’ as opposed to “Time Unit” with space. Is there a way to achieve this without too much customization to grid filter?
Lets say i have Enum and Class like listed below that i would use for binding to GridView, and would expect filter to show "Time Unit" & Work Unit.
public enum Unit
{
[Display("Time Unit")]
TimeUnit,
[Display("Time Unit")]
WorkUnit
}
Public class MyClass
{
Public Unit {get; set;}
}