473,387 Members | 1,510 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,387 software developers and data experts.

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 994
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
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">...
5
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...
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...
2
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. ...
2
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...
3
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...
1
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...
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"...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.