C# Issue: How do I save changes made in a DataGridView back to the DataTable used?

后端 未结 2 552
孤独总比滥情好
孤独总比滥情好 2021-01-02 07:35

I get a DataTable from a DataSet and then bind that DataTable to a DataGridView. Once the user edits the information on the DataGridView how do I take those changes and put

2条回答
  •  伪装坚强ぢ
    2021-01-02 08:07

    as mentioned DataAdapters are one of the easy ways.

    See: http://www.codeproject.com/KB/database/relationaladonet.aspx

    for a pretty simple example that I think covers what youu need.

提交回复
热议问题