如何将值添加到网格视图 [英] How to add the values into Grid View

查看:126
本文介绍了如何将值添加到网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个文本框.当在文本框中输入一些文本并单击添加按钮时,应将其添加到需要编辑和删除等功能的网格视图中.

请对此提供一些帮助!!!

谢谢,
Prasant

Hi All,

I have a textbox.When a write some text into the text box and click add button it should add into the grid view where i need the functionalities like edit and delete.

Please some one help on this please!!!

Thanks,
Prasant

推荐答案

如果您的gridview是数据绑定的,我最好的选择是将值添加到数据源,然后将其重新绑定到您的gridview.这样,您就消除了将其添加到gridview中但实际上并未将其添加到数据源中的可能性.
If your gridview is data bound, my best bet would be to add the values to the data source and then re bind it to your gridview. In that way, you eliminate the possibility that you have added it in your gridview but haven''t actually added it in your data source.


这篇关于如何将值添加到网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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