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

tips on how to produce a 'partitioned' datalist/datagrid

I would like to produce something like:

http://redwoodestates.co.uk/forrent.aspx

It's either a datalist/repeater/datagrid, but it is broken up into
sections ("1 bedroom", "2 bedroom", etc...)

My experience with datalists is that you can have a <SeparatorTemplate>
between each row, but how do they manage to separate rows at random
intervals?

Are they using a <repeater> within each datalist <itemtemplate>
or something similar?

Thanks.
--

"I hear ma train a comin'
.... hear freedom comin"
Nov 19 '05 #1
2 1132
they probably did not not use a repeater, but just generated the table
directly, its faily trival.

-- bruce (sqlwork.com)

"Stimp" <re*@spumco.com> wrote in message
news:sl****************@carbon.redbrick.dcu.ie...
I would like to produce something like:

http://redwoodestates.co.uk/forrent.aspx

It's either a datalist/repeater/datagrid, but it is broken up into
sections ("1 bedroom", "2 bedroom", etc...)

My experience with datalists is that you can have a <SeparatorTemplate>
between each row, but how do they manage to separate rows at random
intervals?

Are they using a <repeater> within each datalist <itemtemplate>
or something similar?

Thanks.
--

"I hear ma train a comin'
... hear freedom comin"

Nov 19 '05 #2
On Fri, 14 Oct 2005 09:20:42 -0700, Bruce Barker wrote:
they probably did not not use a repeater, but just generated the table
directly, its faily trival.

-- bruce (sqlwork.com)

"Stimp" <re*@spumco.com> wrote in message
news:sl****************@carbon.redbrick.dcu.ie...
I would like to produce something like:

http://redwoodestates.co.uk/forrent.aspx

It's either a datalist/repeater/datagrid, but it is broken up into
sections ("1 bedroom", "2 bedroom", etc...)

My experience with datalists is that you can have a <SeparatorTemplate>
between each row, but how do they manage to separate rows at random
intervals?

Are they using a <repeater> within each datalist <itemtemplate>
or something similar?

Thanks.
--

"I hear ma train a comin'
... hear freedom comin"

I use nested repeaters in master/detail configuration. The inner repeater
(detail) is data bound in the master repeater's onItemDataBound event.
(i.e.: a MasterRowAvailableHandler))
Mine is:
protected void MasterRowAvailableHandler(Object sender,
RepeaterItemEventArgs e){
try{
if(e.Item.ItemType == ListeItemType.Item || e.Item.ItempType ==
ListItemType.AlternatingItem){
((Repeater)e.Item.FindControl("DetailRepeater")).D ataSource =
((DataRowViw)e.Item.DataItem).CreateChildView("Mas terDetailRelation");
((Repeater)e.Item.FindControl("DetailRepeater")).D ataBind();
}
etc. (exception handling)
The "MasterDetailRelation" is a DataRelation between the master and detail
tables as for example:
DataRelation rel = new DataRelation("MasterDetailRelation",
ds.Tables("Master").Columns["CommonColumn"],ds.Tables("Detail").Columns["CommonColumn"]);
ds.Relations.Add(rel).

//ds is the DataSet containing the two tables.
I hope this helps
Nov 19 '05 #3

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

Similar topics

1
by: wsyeager36 | last post by:
I have a datagrid inside a datalist. The datalist shows parent info and the datagrid shows the child info for that parent. There is a checkbox on each row of the child datagrid. Also inside the...
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...
2
by: Eduardo Rosa | last post by:
Hello people, I'm using DataList to show some info from db (sqlserver), my question is about how make a button that call a function to do something using info from a line of the DataList. I...
1
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.