DataGridView.Clear()

前端 未结 19 1880
夕颜
夕颜 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:28

    I'm betting you just need to refresh the datagrid. Try this:

    dataGridView1.Rows.Clear();
    dataGridView1.Refresh();
    

    If this works... you might want to rethink this part of your application.

提交回复
热议问题