Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to Delete selected row in data grid view and database by C#

$
0
0

Hello ,

 I create a grid data table which is for display the group information after add click button. The  datagridview is not connected to database directly but binding to the list/collection/enumerator,  When I try to delete the selected row from the datagridview, it shows me error "Rows cannot be programmatically removed unless the datagridview is data-bound to an IBindingList that support change notification and allows deletion."

Don't really understand this, please kindly give me some suggestions.

Best Regard,

 A T K


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>