Adding new rows dynamically in a grid view or datatable in asp.net?

后端 未结 2 502
悲&欢浪女
悲&欢浪女 2020-12-19 20:29

I am binding the grid view using data table.

My task is to add new rows to my grid view dynamically when the user clicks \"ADD\" button in grid view it should genera

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 20:59

    You can use fnOpen http://www.datatables.net/ref#fnOpen. It will let you add a row directly below the row you give it. you can give that new row the html you want it to have as well.

提交回复
热议问题