更新网格视图 [英] updating a grid view

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

问题描述


我想在运行时通过键入特定的行来更新我的网格视图项.我尝试了许多代码,但没有得到正确的答案.请帮我.我只需要C#代码,这非常紧急.

Hi,
I want to update my grid view item on run time by typing a particular row. I tried many code but I didn''t get the right answer. Please help me. I want C# code only and it''s very urgent.

推荐答案

您好,
首次加载网格视图时,必须用一些代码填充它.将该代码保留在函数中.现在,当您在文本框中键入一些文本时,请使用该文本框的文本更改事件,并在文本框的text_changed事件中调用该函数.这将重新填充数据网格.
(您可以匹配在文本框中输入的文本,并相应地过滤数据网格上所需的数据).
Hello,
You must be filling your grid view by some code while loading it first time. Keep that code in a function. Now When you are typing some text in a text box, then use text change event of that text box and call that function in text_changed event of the text box. This will refill the datagrid.
(You can match the text entered in textbox and accordingly filter the data required on the datagrid also).


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

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