Selective databinding

G

Guest

I have databinding problem with a repeater

<ItemTemplate>
<tr>
<!-- fixed content -->
</tr>
<tr>
<!-- optional content -->
</tr>
</ItemTemplate>

This repeater i am working on is binded to a custom collection class
implementing the IEnumerable interface. The objects contained within this
collection class may optionally contain a reference to another object. (for
example, photoframe objects may have photo objects).
In each itemtemplate, i have got two table rows..the first row will
definitely have some data fields of the each object in the collection class
binded to it...however the second row may or may not be present based on
whether the object contains reference to another child object.
How do i achieve this selective databinding?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top