将GridView控件带到外面 [英] Taking gridview control outside it
问题描述
我想更新一个gridview行.编辑时,我想更改GridView中文本框的数据.此值应由gridview外部的数字选择器选择.我使用按钮创建了号码选择器.因此,在单击编辑按钮时,将显示号码选择器.然后我们选择数字.选择每个按钮时,应更改文本框的值.为此,我想将textbox值带到gridview之外.他们有什么方法可以将文本框带到gridview之外?
谢谢...
Hi,
I want to update a gridview row. While editing I want to change the data of a textbox inside the GridView. This value should be selected by a number picker outside the gridview. I created the number picker using buttons. So while clicking on the edit button, the number picker will be shown. Then we select the numbers. The textbox value should be changed while selecting each button. For that I want to take the textbox value outside the gridview. Is their any methods to take the textbox outside gridview?
Thank you...
推荐答案
按照以下步骤操作
1.数据表dt =新的数据表()
将其连接到datagriview
2.将gridgridview绑定到外部文本框
3.当文本框在外部验证时刷新datagridview
4. dt.clear()
5.绑定datagridview
希望有帮助
follow these steps
1. Datatable dt = new datatable()
connect it to datagriview
2.binding the gridgridview to outside text box
3. when text box validate outside refrersh the datagridview
4. dt.clear()
5. bind datagridview
hope this help
这篇关于将GridView控件带到外面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!