By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,659 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,659 IT Pros & Developers. It's quick & easy.

Multiple items in a row using repeater or grid

P: n/a

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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 29 Nov 2004 13:28:55 -0000, "Antoine"
<mf****@dsl-spam.pipex.com> wrote:

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


Nov 21 '05 #2

P: n/a

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!
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:da********************************@4ax.com...
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 29 Nov 2004 13:28:55 -0000, "Antoine"
<mf****@dsl-spam.pipex.com> wrote:

I would like to construct my own list of items in a grid/ table/ item listlayout 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 thisas multiple lines for part of a table definition for instance so I haven'tgot 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 dataconstruct 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

Nov 21 '05 #3

P: n/a

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!
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:da********************************@4ax.com...
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?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 29 Nov 2004 13:28:55 -0000, "Antoine"
<mf****@dsl-spam.pipex.com> wrote:

I would like to construct my own list of items in a grid/ table/ item listlayout 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 thisas multiple lines for part of a table definition for instance so I haven'tgot 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 dataconstruct 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

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.