In my database I have a 2 columns (Kind and Priority) that are of type int. I also have an enum with the values of Kind and Priority. But when I try to display them into a GridViewColumn, it shows the integers and not the enum values. Do I need a converter Here is the enums:
public enum Kind
{
None = 0,
Task = 1,
Assignment = 2,
Quiz = 3,
Test = 4,
Exam = 5,
Project = 6,
}
public enum Priority
{
None = 0,
Low = 1,
Medium = 2,
High = 3,
Top = 4,
}
And my XAML:
<GridViewColumn x:Name="PriorityColumn" Header="Priority" Width="60" DisplayMemberBinding="{Binding Path=Priority}" />
<GridViewColumn x:Name="KindColumn" Header="Kind" Width="60" DisplayMemberBinding="{Binding Path=Kind}" />