473,503 Members | 3,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Selective databinding

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?
Nov 19 '05 #1
1 1154
Check out:
http://openmymind.net/index.aspx?documentId=8#4

There are a couple ways to do it, generally it's achieved by hooking into
the ItemDataBound event.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!

"Solitus" <So*****@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
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?

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1237
by: Fungi2003 | last post by:
I am binding a datagrid to a dataset but there are some columns I don't want show in the dataset, what is the easiest way of removing these columns yet still binding to that dataset?
8
2166
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
4
3148
by: alex.hatzisavas | last post by:
Dear all, I'm trying to do a selective deletion from an 'Archive' table based on dates. Here is the setup: Table 'Archive' has a date field ( ). Another table ('Cutoffs') defines the Low...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7063
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5558
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
366
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.