473,830 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grouped grid? Or grid within datalist?

Hi all,

I've got two tables, Tour and Gig. The Gig table has a TourID, to give a
one-many relationship. I'm currently displaying a whole list of Gigs without
tours, but I'd like to display it like:

Tour 1
Gig 1 date
Gig 2 date
Tour 2
Gig 3 date
Gig 4 date
Gig 5 date
Gig 6 date
Tour 3
Gig 7 date
Gig 8 date

Something like the Group options on a WinForms ListView. Is this possible? I
tried moving the grid into a datalist, but then figured I can't set the
SqlDataSource differently for each instance of the grid.

Any ideas?

Thanks,
Nov 19 '05 #1
1 1015
Hi Will,

Take a look at 2 examples I have:
1- http://www.societopia.net/Samples/Da...Hierarchy.aspx
2- http://www.societopia.net/Samples/Da...Hierarchy.aspx
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com
"Danny Tuppeny" wrote:
Hi all,

I've got two tables, Tour and Gig. The Gig table has a TourID, to give a
one-many relationship. I'm currently displaying a whole list of Gigs without
tours, but I'd like to display it like:

Tour 1
Gig 1 date
Gig 2 date
Tour 2
Gig 3 date
Gig 4 date
Gig 5 date
Gig 6 date
Tour 3
Gig 7 date
Gig 8 date

Something like the Group options on a WinForms ListView. Is this possible? I
tried moving the grid into a datalist, but then figured I can't set the
SqlDataSource differently for each instance of the grid.

Any ideas?

Thanks,

Nov 19 '05 #2

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

Similar topics

1
1768
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"> <tr> <td><%# DataBinder.Eval(Container.DataItem, "title") %></td>
5
2634
by: Rick Spiewak | last post by:
I'm using a DataList inside a Grid Layout Panel (which ends up being a <DIV>) so that I can use the overflow:scroll property. This is working fine, except for one anomaly: If there aren't enough items to cause an overflow, and scrolling, they get spaced evenly inside the <DIV>. So, one item appears in the middle of the area, two spread out with space on top, between, and bottom, etc. Finally, after adding enough to fill the area, the...
1
3186
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 EventList_ItemCreated (below the html), but it's always <undefined value> (null). Everything else works fine. Eventually I need to set the value of the label depending up the Count of the DataView "dvDiscount". For now I'll settle for just finding the damn...
2
1071
by: tshad | last post by:
I have multiple Grid objects that are editable on my page. The following is an example of the onEditCommand method. In this case D1 (the Grid object) is known. **************************************************** sub DataEdit(S as Object, E as DataGridCommandEventArgs) trace.warn("in DataEdit") D1.EditItemIndex=Cint(E.Item.ItemIndex) FillUpGrid() end sub
2
2258
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 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...
3
1310
by: Kenneth P | last post by:
Hi, I've planned an app where there's a lot of columns in a table and because of that I'd like to split up the columns when presenting them in a datagrid. I'll give you an example. It's always one year between every row row _type descr amount remAmount rate interest accruedInterest 1 1 Claim1 100000 100000 10 10000 10000 2 1 Claim2 100000 200000 10 20000 30000
1
1681
by: .Net Sports | last post by:
I am resurrecting an old script from a previous programmer, and want to migrate it over to asp.net from classic asp. Tho there are other peripheral parts of the script (that really have no bearing on the core, in which I will explain), the main core is the concern. I have a daily feed from a horseracing prognosticator that gets put into an sql database on a daily basis for roughly 15 popular racetracks. A user (who will need a...
9
2586
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" runat="server"> <ItemTemplate> <asp:Label ID="lblItemPrice" runat="server" /> </ItemTemplate> </asp:DataList>
4
1204
by: drdave | last post by:
I need to output my data in a grid fashion but some of the cells will have more than 1 record, I have been wrestling with the best solution for this. I need data in this fashion: rowheader col1 col2 col3 col4 row1 data data data data data data
0
9780
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10476
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10520
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7739
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6940
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5615
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5775
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4408
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3956
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.