Ive got it but thanks anyway for your help. Ive created a sub wherein i get the coursecatid
here is my code
Private Sub CreateCourseGrid(Optional ByVal parentIsPostBack As Boolean = False)
For iCatRow As Integer = 0 To grdCategory.Rows.Count - 1
Dim ccId As String = _
DirectCast(grdCategory.Rows(iCatRow).Cells(1).FindControl("lblCourseCatID"), Label).Text
Dim year As String = drpdwnYear.Text
Dim disciplineId As Integer = DropDownList1.SelectedValue
_coursesdataDAL = New CoursesDataDAL
Dim coursedata As New CoursesData
coursedata.Year = year
coursedata.CourseCatID = ccId
coursedata.DisciplineID = disciplineId
Dim pnlCourse As Panel = DirectCast(grdCategory.Rows(iCatRow).Cells(1).FindControl("pnlCourse"), Panel)
Dim courseUC As CourseUserControl = LoadControl("~/CourseUserControl.ascx")
courseUC.CData = coursedata
courseUC.ParentIsPostBack = parentIsPostBack
pnlCourse.Controls.Add(courseUC)
Next
End Sub
Ive added some subs and class but that code binds the user control. Works like charm. Thanks to all