Operation cannot be performed in this event handler

后端 未结 4 1785
日久生厌
日久生厌 2021-01-19 03:46

I\'m trying to delete a row from a DataGridView
I use two types of instuctions
A

VouchersDGV.Rows.Clear()

B



        
4条回答
  •  清酒与你
    2021-01-19 04:14

    I have had the similar problem, my datagridview control was bound by dataBindingSource to BindingList of objects, and I was unable to remove a row from datagrid. The solution for me was remove an item from BindingList.

提交回复
热议问题