Nithesh Narayanan
Nithesh Narayanan

Reputation: 11775

How to add dynamic rows to a table on C#

Hi i have a table and i want to add dynamic rows to that through C# ... how can i do this.... advance thanks

Upvotes: 3

Views: 1169

Answers (2)

Singleton
Singleton

Reputation: 3679

Your question is not clear but m giving link so that it will save your time

http://www.dotnetspider.com/resources/17172-adding-dynamic-row-datagrid.aspx Come back with little more detail so that u get the answer in no time ,, Thank

Upvotes: 2

AsifQadri
AsifQadri

Reputation: 2389

You can add new rows in html table via javascript

<asp:Button ID="btnTest" runat="server" Text="Check" OnClientClick="javascript:return AddRow();"/>



<script type="text/javascript" >
           var mytable = document.getElementById('mytableID');
           function AddRow() {
               var row = document.createElement('tr');
               mytable.appendChild(row);
               return false;
           }
       </script>

Upvotes: 6

Related Questions