开发者

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.... advanc开发者_StackOverflowe thanks


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>


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜