473,396 Members | 2,018 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.

Datalist within a Datalist.

Hi All,

This may be a stupid question, and may not be the correct solution for my
problem, but here goes.

I want to include a datalist within a datalist, in order to effectively
group items according to one of the columns in a dataset. For example: I
have 2 artists and 7 items. I want to display these in the following
format:

Artist1 Item1
Item2
Item5
Item7

Artist2 Item3
Item4
Item6

I have successfully included a datalist inside a datalist, BUT the second
datalist lists ALL items. I need to somehow run a custom SELECT statement,
eg: in a dataview, but I can't figure out how to do this dynamically. I
want to avoid having a separate Dataview for each Artist.

Can anyone help me please? And is this the right solution?

Regards and Thanx in advance.

Rob
ro**@devtest.com
Nov 15 '05 #1
2 7403
I'm not sure if I understand your question, but it sounds like you're
trying to duplicate the functionality provided in datagrids:
http://www.dotnetjunkies.com/tutoria...63C4C9BBC.dcik

Hope that helps,

Erik

"Rob Manger" <ro**@devtest.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi All,

This may be a stupid question, and may not be the correct solution for my
problem, but here goes.

I want to include a datalist within a datalist, in order to effectively
group items according to one of the columns in a dataset. For example: I
have 2 artists and 7 items. I want to display these in the following
format:

Artist1 Item1
Item2
Item5
Item7

Artist2 Item3
Item4
Item6

I have successfully included a datalist inside a datalist, BUT the second
datalist lists ALL items. I need to somehow run a custom SELECT statement, eg: in a dataview, but I can't figure out how to do this dynamically. I
want to avoid having a separate Dataview for each Artist.

Can anyone help me please? And is this the right solution?

Regards and Thanx in advance.

Rob
ro**@devtest.com

Nov 15 '05 #2
Erik,

Thanx heaps for the prompt reply. This looks like exactly what I want :D

Rob.

"Erik Frey" <er*******@hotmail.com> wrote in message
news:uO**************@TK2MSFTNGP09.phx.gbl...
I'm not sure if I understand your question, but it sounds like you're
trying to duplicate the functionality provided in datagrids:
http://www.dotnetjunkies.com/tutoria...63C4C9BBC.dcik
Hope that helps,

Erik

"Rob Manger" <ro**@devtest.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi All,

This may be a stupid question, and may not be the correct solution for my problem, but here goes.

I want to include a datalist within a datalist, in order to effectively
group items according to one of the columns in a dataset. For example: I have 2 artists and 7 items. I want to display these in the following
format:

Artist1 Item1
Item2
Item5
Item7

Artist2 Item3
Item4
Item6

I have successfully included a datalist inside a datalist, BUT the second datalist lists ALL items. I need to somehow run a custom SELECT

statement,
eg: in a dataview, but I can't figure out how to do this dynamically. I
want to avoid having a separate Dataview for each Artist.

Can anyone help me please? And is this the right solution?

Regards and Thanx in advance.

Rob
ro**@devtest.com


Nov 15 '05 #3

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

Similar topics

1
by: pete K | last post by:
Is it possible in asp.net to have a datalist in the itemtemplate of another datalist? For example: <asp:datalist id="MyList" runat="server"> <ItemTemplate> <table border="0" width="300">...
1
by: bill yeager | last post by:
I have a datagrid control within a datalist control. When I try and do a "Find" on the control, the object comes back with nothing and then my pgm crashes. I am 100% sure that my datagird inside...
1
by: Doug | last post by:
The html below shows DataList "DiscountList" nested within DataList "EventItemList". DiscountList contains a Label control. I'm trying to find the label, using FindControl, during...
9
by: jjack100 | last post by:
I want to set the text value of a label that is within a datalist in the codebehind. Does this have to be done in the databound event? Simplified example: <asp:DataList id="dlItem"...
5
by: Petr SIMUNEK | last post by:
Is there a way to render something before the DATALIST encapsulation table gets rendered ? So that I could have Label before actual table that is rendered by DATALIST... <h1>Some Label</h1>...
0
by: s.gregory | last post by:
My page layout is like this: Page >DataList (databound using ObjectDataSource1 contained in page) >>Items >>>UserControl >>>>GridView (databound using another ObjectDataSource2 contained in...
0
by: Isz | last post by:
PROBLEM: This problem is related to the postback and handling events correctly. BACKGROUND: I have a datalist which acts as a tabbes list with horizontal layout. This datalist is bound to a...
2
by: rn5a | last post by:
I am using a DataList control to display records from a database table. The records are being rendered in a HTML table which is within the DataList....something like this: <form runat="server">...
0
by: Jim in Arizona | last post by:
Is there an easier way to make a datalist aware of line breaks within text fields? I have a text box that users can type into. If they press the enter key a few times, VB sees this as a vbCrLf....
4
by: Peter | last post by:
I have a DataList and each item in the datalist has an imge, I want to change the datalist item image on the client side when user clicks a button. How would I do that with JavaScript, does anyone...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.