开发者

How to update remote MS SQL Database using dataGridView1

开发者 https://www.devze.com 2023-01-24 17:05 出处:网络
using c#/winforms, I used the designer view to add a datagridview control to the form and set it up... It can successfully read from the remote database :) but I need for it to be able to update the d

using c#/winforms, I used the designer view to add a datagridview control to the form and set it up... It can successfully read from the remote database :) but I need for it to be able to update the database too, for example, when I add new rows or edit/remove existing ones.

Ho开发者_StackOverflow中文版w can this be done?

Thanks, and any help is much appreciated :)


There are many ways. One is to use a binding source component tied to a typed dataset or business object as datasource.

BindingSource will handle the CRUD functions between user and dataset/datatable. Use tableadapters for final updates.

BindingSource Component

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号