private void BindData() { DBLayer db = new DBLayer(); uiGridViewSchedule.DataSource = db.GetScheduleByClassRoomAndDay(Convert.ToInt32(uiDropDownListClassRooms.SelectedValue), Convert.ToInt32(uiDropDownListDay.SelectedValue)); uiGridViewSchedule.DataBind(); }