从网格删除数据表中的一行 [英] Delete a row in data table from grid
本文介绍了从网格删除数据表中的一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用数据表绑定网格.我在网格中给出了一个删除按钮.如果我单击,我想删除整行.我怎样才能做到这一点.请帮助.
谢谢
Hi,
I am using Datatable to bind a grid. I gave a delete button in the grid. If i clicked that I want to delete that entire row. How can I do this. Pls help.
Thanks
推荐答案
请参阅这些CP文章
可编辑和多功能Datagridview [通过分页在DataGridView中添加,编辑和删除 [ ^ ]
Refer these CP article
Editable and Multi-Functional Datagridview[^]
Add, Edit, and Delete in DataGridView with Paging[^]
找到这些答案,然后将其应用到您的按钮单击事件中..
http://social.msdn.microsoft.com/论坛/en-US/winformsdatacontrols/thread/3970aea7-de83-4c53-8034-83aaa9f7a9a1 [ http://go4answers.webhost4life.com/Example/remove-row-datagridview-7006.aspx [ ^ ]
http://www.daniweb.com/software-development/csharp/threads/285562/deleting-rows-from-datagridview-c [
Find answer from these and then apply it in your button click event..
http://social.msdn.microsoft.com/forums/en-US/winformsdatacontrols/thread/3970aea7-de83-4c53-8034-83aaa9f7a9a1[^]
http://go4answers.webhost4life.com/Example/remove-row-datagridview-7006.aspx[^]
http://www.daniweb.com/software-development/csharp/threads/285562/deleting-rows-from-datagridview-c[^]
这篇关于从网格删除数据表中的一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文