473,325 Members | 2,480 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,325 software developers and data experts.

table in tablerow

Dear All,

I would like to know whether it is possible to add a table in tablerow?

Dim Table1 As New Table.
Dim Row1 As New TableRow

Dim Table2 As New Table
Row1.Cells.Add(Table2) <- wrong here

Table1.Rows.Add(Row1)

As i want to produce the follow HTML

<table>
<tr>
<td>
<table>
<tr>
<td>records</td>
</tr>
</table>
</td>
</tr>
</table>

Thank you

Regards,
Harry
Nov 18 '05 #1
1 1333
It is possible to add a table to a table cell, not a row (Actually, it IS
programmatically possible to add the table to a row, but it results in bad
HTML). However, you can't add a table to the Cells collection of a TableRow.
It isn't a TableCell. The Cells property is a TableCellCollection, which is
a strongly-typed Collection of TableCell objects. Instead, add a TableCell,
and add the Table to its' Controls Collection.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Harry" <ha******@mail.hongkong.com> wrote in message
news:##**************@tk2msftngp13.phx.gbl...
Dear All,

I would like to know whether it is possible to add a table in tablerow?

Dim Table1 As New Table.
Dim Row1 As New TableRow

Dim Table2 As New Table
Row1.Cells.Add(Table2) <- wrong here

Table1.Rows.Add(Row1)

As i want to produce the follow HTML

<table>
<tr>
<td>
<table>
<tr>
<td>records</td>
</tr>
</table>
</td>
</tr>
</table>

Thank you

Regards,
Harry

Nov 18 '05 #2

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

Similar topics

5
by: Sue | last post by:
On code-behind page: (attributes set programatically for each of these elements) linkbutton added to tablecell textbox added to tablecell tablecells added to tablerow tablerow added to table...
25
by: kie | last post by:
hello, i have a table that creates and deletes rows dynamically using createElement, appendChild, removeChild. when i have added the required amount of rows and input my data, i would like to...
5
by: Stanislas | last post by:
I'm working on an existing project. I've got a Row Id and I must find the table id (the table who contains the row). Is it possible ? In fact, from a Row Id I must delete the row but I...
0
by: Stephen | last post by:
I have been getting on well with help from this forum trying to create an array list and work with it. Everything is working fine apart from displaying my array list items into the labels in my...
4
by: Rob Meade | last post by:
Hi all, I'm desperately trying to get this to work and I just cant do it - new to ASP.net - probably the reason! I'm using visual studio for this - I have this in the html page : <asp:Table...
0
by: Kristoffer Arfvidson | last post by:
HI! I have the following javascript events in my normal tables. onMouseOver,onMouseOut and onClick Now, when I try to put this in my asp:tablerow it just gets an error msg that literal text is...
7
by: Amirallia | last post by:
Hello! I have a wecontrol table in a page, this table has a number of variable rows depending of the choice of the user. But when the table has a large number of rows, the printing of the page...
3
by: gg77 | last post by:
Hi, I don't have much knowledge of the table control. I am basically trying to use a table thats populated with data rows from a dataSet but currently things aren't working for me. below is...
2
by: rmandel | last post by:
I'm very, very new to .Net but have been doing C/C++ for years. I'm having a great deal of difficulty with something that should be simple. Here's what I'm trying to do.... Display three...
3
by: mj.redfox.mj | last post by:
Hi I'm fairly new to ASP.NET and realise I'm probably asking a very straightforward question, sorry about that but I'd be grateful if someone could possibly help out - I'm sure the answer will...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.