更新GridView中的值 [英] Updating values in gridview

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

问题描述

嗨!


我正在开发一个wcf应用程序.在此应用程序中,我使用回调函数.通过使用此功能,我可以在特定的时间间隔内将值发送到客户端.我将此值存储在数据集中并发送给客户端.在客户端,我使用tabpages和tabcontrol.我从服务获取数据集并与datagridview绑定.并在选项卡中显示gridview.不断地我从服务中获取值并将此值投标给gridview,但是在gridview中,这些值没有更新.

请帮我解决这个问题...
感谢all

Hi!


I am developing one wcf application. In this application i m using callback function. By using this function i m sending values to client in particular time interval. I m storing this values in dataset and sending to client. In client side i m using tabpages and tabcontrol. I m getting dataset from service and bind with datagridview. And displaying gridview in tabpage. And continuously i m getting the values from service and biding this values to gridview but in gridview this values are not updating.

Plz help me to solve this problem...
Thanks to all

推荐答案

在绑定数据源后使用此代码行刷新datagridview

dataGridView1.Refresh();

希望这会有所帮助.
Use this line of code to refresh the datagridview after binding the data source

dataGridView1.Refresh();

hope this will helps.


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

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