如何更新 DataGridView 中的行? [英] how to update row in DataGridView?

查看:29
本文介绍了如何更新 DataGridView 中的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从 DataSet 填充的 DataGridView.

I have a DataGridView that is populated from a DataSet.

如何更改 DataGridView 中的任何单元格,并同时更改 DataSet(和数据库).

How can I change any cell in the DataGridView, and have this change the DataSet too (and the Database).

有没有我可以学习的示例程序(C# 中)?

Is there a sample program for this (in C#) that I can learn from?

推荐答案

这是一篇文章,其中包含清晰的解释、屏幕截图和演示如何使用 DataGridView 的代码.数据绑定部分应该特别有趣.

Here is an article with clear explanations, screenshots, and code that demonstrates how to use the DataGridView. The data binding sections should be of particular interest.

这篇关于如何更新 DataGridView 中的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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