2016-11-14 113 views
-4

我有一個datagridview,我需要在datagridview中添加一個刪除和編輯按鈕,它將從數據庫中刪除和編輯該特定行...我需要知道在datagridview中如何執行編輯和刪除按鈕。 In the link below , you can see that the delete and edit image i give如何在c#中的datagridview中添加編輯和刪除按鈕代碼

+0

之前張貼問題,請確認您已經閱讀[這些話題](http://stackoverflow.com/help/asking)解釋如何問一個廣受歡迎的問題。 – dymanoid

+0

[檢查此鏈接這可能會幫助你](http://stackoverflow.com/questions/21191950/how-to-add-a-button-to-a-column-in-the-datagridview) – Vinoth

回答

-1

使用datagridview的CRUD(創建,讀取,更新和刪除)非常簡單。請嘗試下面的鏈接,以幫助您實現它。我確定使用這個鏈接添加,編輯,更新和刪除是可能的。 http://www.c-sharpcorner.com/uploadfile/9f0ae2/gridview-edit-delete-and-update-in-asp-net/ http://www.aspsnippets.com/Articles/Simple-Insert-Select-Edit-Update-and-Delete-in-ASPNet-GridView-control.aspx

+0

我使用的窗口形式申請在C#.net – Anjana

+0

嗨,我不能幫助你,因爲你讓我的答案下投票。 –

相關問題