使datagridview中的第一行可见为false [英] Making first row in the datagridview visiblity to false

查看:68
本文介绍了使datagridview中的第一行可见为false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何删除或隐藏datagridview中的第一行.我尝试了以下操作:

How do i remove or hide the first row in the datagridview.i tried this:

datagridview.rows(0).visible = false

,但是却出现此错误:不可见.)

but i get this error: (Row associated with the currency manager''s position cannot be made invisible.)

推荐答案

此处给出了类似问题的解决方案
如何隐藏一行Datagridview吗? [ ^ ]
与行关联的行货币经理的职位不能隐瞒 [
The solution to a similar problem is given here
how to invisible a row of Datagridview ?[^]
Row associated with the currency manager''s position cannot be made invisible[^]
I think it may be helpful.


尝试
dataGridView.CurrentCell = Nothing
dataGridView.Rows(0).Visible = False


这篇关于使datagridview中的第一行可见为false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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