如何绑定我们刚刚输入到gridview的数据 [英] how to bind data that we just entered into gridview

查看:76
本文介绍了如何绑定我们刚刚输入到gridview的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个问题,我想将用户刚刚输入的数据(例如,从下拉列表和文本框输入的数据)绑定到gridview中,以便他们可以对其进行查看.然后,如果要删除,可以删除它们,或者如果满意,则可以继续提交数据.

我只是以为GridView是因为我习惯了.也许你们有其他想法或方法来绑定用户输入的最新数据.我已经尝试绑定,但是它绑定了所有表格.所以以前的数据也显示了.我只是只需要该用户输入的最新数据.

在此先感谢
musiw.

hi all,

i have a problem where i want to bind data that just entered by user (for instance from dropdown and textbox) into gridview so that they can review it.then if they want to delete they can delete or if satisfy then can proceed to submit the data.

i only thought gridview because i used to it.maybe you guys have another idea or method to bind latest data that enter by user.i already tried to bind, but it goes bind all the table.so the previous data also displayed.i just want the latest data that entered by this user only.

thanks in advance
musiw.

推荐答案

提交记录后再次绑定Gridview .

Bind your Gridview again after submitting records.

GridView1.Datasource=ds;
GridView1.Databind();



谢谢
灰烬



Thanks
Ashish


这篇关于如何绑定我们刚刚输入到gridview的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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