I am binding the CourseListItem to a drop down list. The DataTextField is set to CourseNoAndDate which displays the course no followed by the course date. I have used the PadRight method on the CourseNo to ensure that all course numbers and Course dates
line up in the drop down list.
The probelm I am having is that when the drop down list is rendered it is encoded. The resulting output results in spaces being replaced with  , Therefore the courseno and date columns do not align. The browser renders the drop down list items with
out the correct spacing.
public class CourseListItem
{
public string CourseNo { get; set; }
public string CourseDate { get; set; }
public string CourseNoAndDate
{
get
{
string tmpCourseNo = CourseNo;
tmpCourseNo = tmpCourseNo.PadRight(8, ' ');
return string.Format("{0} | {1} ...
Go to the complete details ...