DataGridView WinForms Auto Reload/Update/Refresh

后端 未结 4 1470
半阙折子戏
半阙折子戏 2021-01-27 02:27

I have a windows form with a DataGridView control.

I bound it into an attached DB file (.mdf).

I perform insertion by generating a dynamic Insert st

4条回答
  •  天涯浪人
    2021-01-27 02:41

    you can programmatically set the dataSource to null and again set the actual dataSource to reload the gridview..

    but the control will hang for some few secs..(even suspendLayout may not work)

    other than this I don't know how to refresh.. even if you refresh, update etc it will not update the once bound datagrid control

提交回复
热议问题