Not sure if this is the problem but most likely your SQL statement is causing an exception. If you have a look at
String GetCommand = "Select ID CourseName, Description, StartDate, EndDate, CourseMode from Course" + "Where ID = @CourseID";
In the concatenated string there is no space between the table name
Course
and the keyword
WHERE
.
Unless you're planning to add something in between, why not remove the concatenation:
String GetCommand = "Select ID CourseName, Description, StartDate, EndDate, CourseMode from Course Where ID = @CourseID";
Another thing is that you have an empty catch block. So whatever errors you may encounter you throw them all away. Instead of hiding the errors, you should add proper error handling, such as informing the user, writing a log etc.
The third thing is that you should probably define the id as a parameter for GetCourse in
this.CourseListView1.DataSource = CourseRepository.GetCourse(???);
if this is the same method. However, the data source should probably contain all relevant rows, not just a single one so I'm not quite sure if this is what you're after.