清除VB 6.0中的数据网格 [英] Clearing a datagrid in VB 6.0

查看:78
本文介绍了清除VB 6.0中的数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是vb 6.0编程的新手。我有一个datagrid,它显示访问数据库表中的发票详细信息。如果要显示其他发票明细,如何清除数据网格内容?

Iam new to vb 6.0 programming. I have a datagrid which displays invoice details from an access database table. How can I clear the datagrid contents if I want to show another invoice details?

推荐答案

gridview.DataSource=null;
gridview.DataBind();


这篇关于清除VB 6.0中的数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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