【发布时间】:2010-07-17 05:22:55
【问题描述】:
使用 SQL Server 数据库视图填充 DataGridView 和修改 DB 中的数据
I want to know that how this will be done and if this is not a good solution, then please elaborate if any other good solution is possible.
1) 最初我想使用Database View 填充不同的DataGridViews。
2) 每个DataGridView 的数据检索都需要Multiple joins from multiple tables。
3) 这些DataGridViews 中的值随后填充到Controls(即文本框/组合框)中(有关参考,请参阅此链接中的图像:link text)。
4) 当用户更改Controls 中的值并单击Save 时,之前从DataGridView(通过View)检索到的数据将在Database 中更新。
注意:我正在开发 C-Sharp Windows 应用程序并使用 SQL Server 2005。
【问题讨论】:
-
对我的上述问题有任何答案吗?我仍在等待最早的答复。