Skip to content

How to bind a nested enumerated control from an ObjectDataSource

by Wayne Denier on April 28th, 2010

If you have multiple levels of enumerated controls (ie. Repeaters, ListViews) that need to be databound to properties of a bound DataItem, use the below DataSource property on the nested control…

DataSource='<%#  DataBinder.Eval(Container.DataItem, "Tags")%>'

This can be required if you have some sort of hierarchical data. My example came up while loading article posts that contained a list of tags.

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS