如何在c#中自动刷新datagridview? [英] how can i do auto-refresh datagridview in c#?

查看:1078
本文介绍了如何在c#中自动刷新datagridview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在自动刷新模式下执行datagridview ..

或在选择,更新,插入等值后刷新





plz help

I want to do datagridview in auto-refresh mode..
or refresh after value selected , updated, inserted etc


plz help

推荐答案

如果您在要刷新gridview的所有事件上重新加载或调用Bind()方法,则会更好。



例如,如果插入了某些内容,您只需重新加载gridview。
Its better if you reload or call the Bind() method at all those events that you want to refresh the gridview.

For Example if something is Inserted you can simply reload the gridview.


这篇关于如何在c#中自动刷新datagridview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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