当我单击网格外部的按钮时,如何向网格添加新行 [英] how to add a new row to a grid when i click the button outside of the grid

查看:66
本文介绍了当我单击网格外部的按钮时,如何向网格添加新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





因为我刚接触网格,在C#中任何人都可以帮我将新行添加到网格中单击位于网格外部的按钮。请建议

推荐答案

请参阅下面的链接,这些链接可以帮助您



http:// stackoverflow.com/questions/19485909/add-new-row-in-gridview-after-binding-c-asp-net [ ^ ]



从ASP.NET GridView动态添加和删除行 [ ^ ]
Refer the links below which may help you

http://stackoverflow.com/questions/19485909/add-new-row-in-gridview-after-binding-c-asp-net[^]

Dynamically adding and deleting rows from ASP.NET GridView[^]


按钮上单击,获取数据源 GridView ,添加一个新的 Row

然后再次绑定 GridView 更新的 DataSource
On Button Click, get the DataSource of GridView, add a new Row to it.
Then bind the GridView again using the updated DataSource.


此链接对我帮助很大...........



从ASP.NET GridView动态添加和删除行 [ ^ ]
this link has helped me a lot...........

Dynamically adding and deleting rows from ASP.NET GridView[^]


这篇关于当我单击网格外部的按钮时,如何向网格添加新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆