Refresh button - Refreshing data grid view after inserting, deleting, updating

前端 未结 6 1619
别跟我提以往
别跟我提以往 2020-12-02 00:59

I\'m trying to create a refresh button to automatically refresh the data inside my datagridview after i have finish updating them.

However, my refresh button doesn\'

6条回答
  •  执笔经年
    2020-12-02 01:41

    Hey the solution above is good but when the above code is executed,the table disappears and is not seen. And if I execute

            da.Fill(ds, "p");
            dataGridView1.DataSource = ds.Tables["p"];
    

    then whole table is created again.

提交回复
热议问题