473,387 Members | 1,464 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.

Help with ROWSPAN in table/grid form display

hello,
relatively new to .net, i'm using vb.net and the 2.0 .net platform

I'm trying to display a grid that has a text box on the left in one
cell (with a hidden ID), which will be associated to multiple rows
(events) on the right. each row on the right will also have a text
box

-------------------------------------------------------
[ ] event 1
[ ] [ ] event 2
[ ] event 3
-------------------------------------------------------
[ ] event 4
[ ] [ ] event 5

-------------------------------------------------------

the user is able to rate the "outer" value which will be passed to the
inner values, or they can ignore the outer value and individually rate
the inner value
the other caveat is that not all events are 3-to-1, some may be 2 some
may be 1.
I have in the DB the associations between the events and the
"grouping", a column on each row will have an ID (unique per grouping,
not unique values in the column) so that information as well as a sum
for how many rows are within that grouping.

i've looked into a "grid within a grid" and the outer column can then
drive the population of the "child" rows to the right. a few problems
with this layout. 1) i needed the full data to come back as one
query, there are filtering capabilities that affect the whole display
and breaking this display into multiple queries to drive the inner and
outer grids will be problem some. 2) the title bar for the inner
grids will show for each grouping, wanted to have just one title bar
for the whole page.

i've also looked (recently found) the repeater capability. this is
more inline with what i'm looking for, as you can have one query and
define all the html-table code yourself.

there is a great tutorial here
http://msconline.maconstate.edu/tuto...pnet08-01.aspx

and under that page there is a section "Styling Table Templates" that
looks mostly like what i'm looking for. but there the outer rowspan
is always at 3, mine would be variable
<asp:Repeater id="ProductsTable" runat="server">
<HeaderTemplate>
<table border="1" cellpadding="3"style="border-collapse:collapse">
<tr style="background-color:#F0F0F0">
<th>Picture</th>
<th>Item Information</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td rowspan="3">
<img src="<%# Container.DataItem("ItemNo") %>.jpg"/>
</td>
<td><%# Container.DataItem("ItemNo") %></td>
</tr>
<tr>
<td><%# Container.DataItem("ItemName") %></td>
</tr>
<tr>
<td><%# Container.DataItem("ItemPrice") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
<tr>
<td colspan="2" style="font-size:10pt">
<i>Source: Products.xml file</i>
</td>
</tr>
</table>
</FooterTemplate>
</asp:Repeater>
i'm assuming i can make the rowspan dynamic with the value being
pulled from the DB and i'm trying to get this to work now.

i'm hoping someone can give me some suggestions on how to handle this
whole display (datagrid, repeater, etc). i need the codebehind to be
able to work with the aspx so that i can process the entries provided
by the users. so in that regard, i don't think i can gen the html
table/form myself (with response write) as then the codebehind would
have access to the elements

any help would truly be appreciated.
thanks!

Feb 27 '07 #1
0 1972

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

Similar topics

5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
3
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
2
by: Anita C | last post by:
Hi, How do I associate or map a specific column in a datatable to a particular element present in an xml document - to read into a datatable as well as write from the datatable to the xml element?...
0
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional...
1
by: smilecry | last post by:
I am trying to create a tree table (javascript code was adopted from online source) but the rowspan in td tag does not work well when I toggle the rows. Here is the sample code, notice the row "4"...
36
by: aljamala | last post by:
Hi, I keep getting this warning on a page, but I do not know what the problem is...does anyone have an idea about what could be wrong? line 88 column 7 - Warning: missing </formbefore <td> it...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
2
by: chaos | last post by:
Hi all, i need help in this forgot password page, as the error message is show in another page cause the arrangement of the design in a mess. As i want to show the error message on the forgot...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
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: 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: 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
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.