如何使用不使用asp.net中的gridview事件的按钮单击事件添加删除更新gridview中的记录 [英] How To ADD Delete Update records in gridview using button click event not using gridview events in asp.net

查看:73
本文介绍了如何使用不使用asp.net中的gridview事件的按钮单击事件添加删除更新gridview中的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中使用按钮点击事件添加删除更新记录在gridview中不使用gridview事件

How To ADD Delete Update records in gridview using button click event not using gridview events in asp.net

推荐答案





对于添加,删除和更新,在按钮单击事件上只需添加,删除和更新DataTable的行(gridview的数据源,我假设其数据表),然后再次绑定网格视图使用那个数据表。



这里我假设你使用datatable来绑定gridview,以防其他一些来源,对它做同样的操作并绑定网格再次查看。



希望它有所帮助。
Hi,

For Adding, Deleting and updating, on the button click event just Add, Delete and Update the rows of the DataTable (data source of the gridview, i assumed its datatable), and bind the grid view again with that datatable.

here i have assumed you are using datatable for binding the gridview, in case its some other source, do the same operations on that and bind the grid view again.

hope it helps.


http://csharpdotnetfreak.blogspot.com/2009/05/edit-multiple-records-gridview-checkbox.html [ ^ ] < br $> b $ b

http:// www。 mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/ [ ^ ]


这篇关于如何使用不使用asp.net中的gridview事件的按钮单击事件添加删除更新gridview中的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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