Hi,
I have a Linq Query where I do the following:
query = context.Select(a => new
{
Course = (CourseType)a.CourseCode,
CourseDetail = sting.Format("Course: {0}\r\nCourse Detail: {1}", ((CourseType)a.CourseCode).ToString(), a.CourseDetail)
});
enum CourseType{
Unknown = 0,
FullTime = 1,
PartTime = 2
}
a.CourseCode is an int and a.CourseDetail is a string. I now bind a label inside a grid to this query. I set the Text to <%# Eval("Course")%> and the Tooltip to <%# Eval("CourseDetail")%>. Although the text in the label correctly displays the value expected from Enum.ToString(), the Tootip always shows the value of the integer value of the enum as 1,2,3...
Whats causing this?
Kind regards,