Remove row from DataGridView

后端 未结 2 1667
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-25 00:36

In order to initialize my VouchersDGV Data Grid View I\'m Using the following

 DGV.AllowUserToDeleteRows = True
 For i = 1 To DGV.RowCount - 1
     DGV.Rows.Remo         


        
2条回答
  •  借酒劲吻你
    2021-01-25 01:02

    If your goal is to empty the row collection, you can just use the Clear method of the Rows collection:

    DGV.Rows.Clear()

    Hope this helps.

提交回复
热议问题