在详细信息视图中添加新记录 [英] add a new record to details view

查看:43
本文介绍了在详细信息视图中添加新记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

 

我对此很新,所以如果我的问题看起来非常简单,请承担和我在一起。

I am very new to this, so if my questions seem horribly simple, please bear with me.

我在Visual Studio 2005中工作并创建了一个新的Windows应用程序。我在SQLServer Express中使用Adventure Works创建了一个数据集。我已经创建了department表的详细信息视图,并且成功编辑了数据并将其写回
到数据库,因此我将数据集和表单属性设置为复制到输出目录,如果更新则复制到目前为止这么好。

I am working in Visual Studio 2005 and have created a new Windows application. I have created a data set using Adventure Works in SQLServer Express. I have created a details view of the department table and am successfully editing data and writing it back to the database, so I have set the Data Set and Form property Copy to Output Directory to Copy if newer - so far so good.

我应该在添加和删除按钮上添加哪些代码才能使它们正常工作?

What code should I attach to the Add and Delete buttons to get them to work?

 

推荐答案

 

感谢您的发帖! 我建议在MS论坛中发布您的问题

Windows开发人员中心 >
Windows窗体论坛
> Windows窗体数据控件和数据绑定


这篇关于在详细信息视图中添加新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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