Hey guys,
I'm new to LLBLGEN PRO, and our office is wanting to use this product to make it faster to create our programs. I'm having a problem with databinding though, so if anyone could help me with this I would appreciate it. Here is the code I am trying to use:
Public Sub Category()
'this will open up and bind the data to the proper controls
Try
'this will fetch the information from the ActivityType Table on the SQL Server
Dim adapter As New DataAccessAdapter
Dim cats As New EntityCollection(New ActivityEntityFactory)
adapter.FetchEntityCollection(cats, Nothing)
Dim coll As New EntityCollection(New ActivityEntityFactory)
cboCategory.DataSource = coll
cboCategory.DataTextField = "description"
cboCategory.DataValueField = "activityTypeID"
cboCategory.DataBind()
lblMessage.Text = "Worked"
Catch ex As Exception
lblMessage.Text = "Didn't Work"
End Try
End Sub
Thank you guys for all the help,
Chris Cotton