Listing 2, Displaying and Updating Dynamic DataBound Columns with ObjectDataSource

If li Is Nothing Then
  Dim prd As Product
  prd = ProductFactory.ReturnListofProductByProductId(ordd.ProductId)(0)
  Dim cdl As DropDownList
  cdl = CType(Me.FormView1.FindControl("DropDownList2"), DropDownList)
  cdl.SelectedValue = prd.CategoryId
End If

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at

comments powered by Disqus