在详细信息视图中添加新记录 [英] add a new record to details view
问题描述
大家好,
我对此很新,所以如果我的问题看起来非常简单,请承担和我在一起。
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论坛中发布您的问题
这篇关于在详细信息视图中添加新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!