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

Adding cell to the tble

I have table with rows:

<asp:Table Runat="server" ID="tbl_MPlan">
<asp:TableRow Runat="server" ID="Tablerow0"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow1"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow2"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow3"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow4"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow5"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow6"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow7"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow8"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow9"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow10"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow11"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow12"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow13"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow14"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow15"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow16"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow17"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow18"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow19"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow20"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow21"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow22"></asp:TableRow>
<asp:TableRow Runat="server" ID="Tablerow23"></asp:TableRow>
</asp:Table>
Now I would like to add the cells when page_onload event is fired:

Dim c As New TableCell
c.Text = "uuuu"
tbl_MPlan.Rows(0).Cells.Add(c)
tbl_MPlan.Rows(1).Cells.Add(c)
tbl_MPlan.Rows(2).Cells.Add(c)
tbl_MPlan.Rows(3).Cells.Add(c)
....
....

But only 1 cell is added.
Why?
Nov 18 '05 #1
0 1123

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

Similar topics

10
by: AdamG | last post by:
I am trying hard for days now to add and delete rows to a table. I could really use some help... Each row contains two buttons (images) - 'add row' and 'delete row'. When the user clicks add...
0
by: Chris Millar | last post by:
I have a user control that i wish to extend to change the date when the user selects the numeric up down button. The code explains itself, hope someone can help. any ideas appreaciated.. ...
2
by: simon | last post by:
I have table with rows: <asp:Table Runat="server" ID="tbl_MPlan"> <asp:TableRow Runat="server" ID="Tablerow0"></asp:TableRow> <asp:TableRow Runat="server" ID="Tablerow1"></asp:TableRow>...
0
by: Sileesh | last post by:
Hi I have html table and a Button in an Aspx page. I am adding one row with some textboxes to Html table each time i click on the Button thru Javascript. Now problem is when when i try to...
0
by: mcrowell | last post by:
Here's my code: DataGridItem row = new DataGridItem(-1, -1, ListItemType.Separator); TableCell cell = new TableCell(); row.Cells.Add(cell); cell = new TableCell(); cell.Text = "New Header";...
5
by: Aaron Ackerman | last post by:
I have a bound combobox the appears on a cell within the column of my bound grid when the user clicks on a cell n(In my vb.net WinForm app). I am trying to allow the adding of an item to that bound...
2
by: dschectman | last post by:
This appears to be a feature of IE JavaScript. I am running IE 6.0 with the latest patches from Microsoft. Are there any workarounds other than re-coding the source HTML to place all the...
2
by: Flack | last post by:
Hey guys, I have a DataGrid and DataTable field in my class : private ImageDataGrid dataGrid1; //ImageDataGrid extends dataGrid and just overides OnMouseDown private DataTable dt = new...
3
by: Rob Meade | last post by:
...does it matter which order? ie... I create a table/tablerow/tablecell, I then create a new update panel, I create a drop down list, I add list items to the drop down list, I then add the...
1
by: cleary1981 | last post by:
Hi, I am trying to add page numbers to my document in xsl fo. I can get the page numbers to work but I need them to show at the bottom of each page. I know you can define an area as region-after...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.