DataGridView.Clear()

前端 未结 19 1953
夕颜
夕颜 2020-12-02 20:01

Here comes the trouble. I want to delete all rows from datagridview. This how i add rows:

private void ReadCompleteCallback(object clientHandle, Opc.Da.ItemV         


        
19条回答
  •  囚心锁ツ
    2020-12-02 20:30

    If your DataGridView does not have any DataSource the solution does not come by manipulating it.

    You will always have an empty row if you have the AllowUserToAddRows property set to true.

    Put AllowUserToAddRows = false if you don't need permise this.

提交回复
热议问题