提交后更新表格 [英] Update table after submit

查看:107
本文介绍了提交后更新表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.

我在更新表格时遇到问题.

我在表单上有一个DataGridView,并使用以下代码从我的表中加载了它:

Hi there.

I have problem with updating table.

I have a DataGridView on my form and loaded it from my table with below code:

DataClassesDataContext ds = new DataClassesDataContext();
var query = from a in ds.types select a;
gdvBarname.DataSource = query;


我将DataGridView的属性"enabledEditing"更改为"true".
现在,我想在DataGridView中进行任何更改后,单击提交"按钮,在sql中更新我的表".

感谢您的回答.


I change property "enabledEditing" of DataGridView to "true".
Now, I want to "after change anything in DataGridView and click on the submit button, my table in sql update".

Thanks for your answering.

推荐答案

这看起来不像是一个问题:您是要发布此评论作为对现有回复的评论吗?
如果是这样,请使用答复"小部件将其复制并粘贴到您先前的问题中.
让我知道,为了让您保持整洁,我将删除此问题.
This doesn''t look like a question: Did you mean to post this as a comment on an existing response?
If so, please copy and paste this to your earlier question, using the "Reply" widget.
Let me know, and I will delete this question for you to keep things tidy.


这篇关于提交后更新表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆