473,396 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Multiple items in a row using repeater or grid


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 18 '05 #1
2 2237
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 18 '05 #2

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 18 '05 #3

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

Similar topics

6
by: suzy | last post by:
hello, how can i have multiple datarepeaters on the same aspx page? i have tried something similar to this: <asp:repeater id="repeater1" runat="server"> <itemtemplate> <td>text</td>...
2
by: Simon Harris | last post by:
Hi All, I have an app which requires a list of coutries to be displayed, so far I have a datagrid which contains displays the countries Ok, along with flag images, these are also links to my...
3
by: Sam Kuehn | last post by:
I have been stuck on this for some time and am desperate for a solution. I run into this all of the time! I will give a over simplified example to illustrate the problem. Say you have 2 user...
3
by: webserverpete | last post by:
I would like to have multiple <td> in a repeater control. The below code does not work: <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" DataMember="DefaultView">...
3
by: Antoine | last post by:
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...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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,...

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.