Multiple items in a row using repeater or grid

A

Antoine

I would like to construct my own list of items in a grid/ table/ item list
layout but I have a problem. I want to add a sort of index row based on
time, such as there might be blank values.

Sure the data list I have at the moment is in order, but I would like to
have each interval possible, and instead of repeating the row index (the
time value) I would like to list it once and then list the items within it
(the items associated with that start time).

Out of repeater/datalist/datagrid I have not seen any typical examples of
where you might do this.

I dont think I can use a seperate repeater and databinding, as surely the
nested repeater will not have any logic in which items to create and will
just dump the items all under the first primary repeater row instance it
comes across.

Perhaps its even possible to construct html within codebehind and pass this
as multiple lines for part of a table definition for instance so I haven't
got to worry about the binding aspect so much as I can define how to
construct the page in code behind? Or is this messy and there are better
ways?

I am certainly not doing this way at present and want to avoid if poss. I
know the treeview can be used this way, but I'd prefer the grid style
layout.

I am just wondering the best way to say have one row value based on a data
construct of my choosing, and then return all values associated with it.
I've never tried any of these components so I wouldn't know what is best
suited or makes it possible.

Any general guidance or direction very much appreciated dot netters.

Thanks
Antoine
 
S

Scott Allen

Antoine:

I'm not exactly clear on what you need, but with nested Repeaters you
can have complete control over what items the child control will bind
to. Have you looked at using the ItemDataBound event?
 
A

Antoine

I'm honest in saying that I haven't. Actually my question should have been
more clear and simple, ie is it possible to do something similar to a
purchasable calendar control in order to only do day or week style sort of
views? I have a lot to learn to work out how to build custom controls.

Maybe however its more time effective just to buy into one someone already
built.....shame though as I already worked around a free sample for month
view.

I'll take a look into that though, thanks!
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top