PC Review


Reply
Thread Tools Rate Thread

Adding rows to the table

 
 
simon
Guest
Posts: n/a
 
      24th Aug 2004
I have button on page and I would like to dynamically add new row to the
table every time, the user clicks the button.

Private Sub btnOkST_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnOkST.Click
Dim vrstica As New HtmlTableRow
Dim stolpec As New HtmlTableCell

stolpec.InnerText = "TEST"
vrstica.Cells.Add(stolpec)
tblCene.Rows.Add(vrstica)

End Sub

This adds the row to the table only the first time, when user click the
button.

If the user click more times nothing happens.
Why?

Then I would like to add the button into the added row, and when user clicks
that button, I would like that row dissapeared.

Any example?

Thank you,
Simon



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding my own rows to a Union Query without adding another table? PaulSchrum Microsoft Access Queries 3 15th Feb 2011 08:28 PM
Adding rows to a table Peter Guest Microsoft Word New Users 3 22nd Nov 2006 08:01 PM
Adding rows to a data table: Rows do not show up =?Utf-8?B?dnZlbms=?= Microsoft VB .NET 2 10th Oct 2006 12:07 AM
Adding rows to Access/SQL table dmacpherson via AccessMonster.com Microsoft Access ADP SQL Server 2 31st Mar 2006 06:02 AM
Adding rows to the table simon Microsoft ASP .NET 0 23rd Aug 2004 04:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:19 AM.