当我单击添加时,我想将文本框中的数据添加到datagridview [英] when i click the add i want to add the data in the textbox to datagridview

查看:79
本文介绍了当我单击添加时,我想将文本框中的数据添加到datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击添加时,我想将文本框中的数据添加到datagridview中,而当我单击添加多次时,就必须完成循环,必须将其添加到net coloum中.请提前解决此问题,谢谢

when i click the add i want to add the data in the textbox to datagridview and when i click add multiple time it as to be done loop it has to be add in net coloum pls solve this problem thanks in advance

推荐答案

单击添加时需要调用存储过程.然后,在添加数据之后,刷新gridview并将其作为select语句的一部分.
You need to call a stored procedure when you click add. Then after your data is added refresh the gridview and have it be part of the select statement.


这篇关于当我单击添加时,我想将文本框中的数据添加到datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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