使用数据网格插入数据 [英] Insert Data using Data Grid

查看:83
本文介绍了使用数据网格插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个发票应用程序,已将数据网格放置在我的发票表单中,以插入有关详细信息,数量等信息....

我希望以一种仅应从用户接受数据并将其保存到数据库的方式构建数据网格,并且不显示任何最早的提要数据.

如果我不能使用Data Grid来实现此成就,那么请帮助了解可用于从TextBox之外的用户获取数据的控件.

I am working on an Invoice Application, I have placed Data Grid in my Invoice Form to insert information about Particulars, Quantity etc....

I want make my data grid in a such a way that it should only accept the data form the user and save it to the database, and does not show any earliest feed data.

If I can''t use the Data Grid for this Achievement, so please help to know the control which I can use to get the data from the user other than TextBox.

推荐答案

如果我完全理解,您只是希望用户输入新数据,而又不想显示以前输入的数据?

在这种情况下,您可能希望使用FormView控件.
If I understood corectly, you just want user to enter new data, and you don''t want to show previously entered data?

In that case you probably want FormView control.


由于不自动填充数据网格,您只需删除此

for not filling a datagrid automatically u just have to delete this

private void Form1_Load(object sender, EventArgs e)
        {          
  this >>>>--     this.datoTableAdapter.Fill(this.DataSet.Datos_de_estudiantes);

        }



通过这个ur datagrid,它只会接受未显示的数据



by this ur datagrid will just accepting data not showing


这篇关于使用数据网格插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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