{
conOOC.Open();
SqlCommand cmdDisplay = new SqlCommand("SELECT * FROM [Course] WHERE ([CourseID] = @id)", conOOC);
cmdDisplay.Parameters.AddWithValue("@id", ddlCourseList.SelectedValue);
SqlDataReader dtrDisplay = cmdDisplay.ExecuteReader();
while (dtrDisplay.Read())
{
GridView1.DataSource = dtrDisplay;
GridView1.DataBind();
}
this one is depends on user select which items on the dropdownlist, once they have selected should display the gridview, but the girdview doesn't show anything :/