使用上下文菜单隐藏/显示gridview列 [英] hide/show gridview columns using Context menu

查看:70
本文介绍了使用上下文菜单隐藏/显示gridview列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用上下文菜单隐藏/显示gridview列?我迫切需要该代码.我使用Jquery尝试了很多,但问题仍未解决.

预先感谢.

How can I hide/show the gridview columns using the context menu? I urgently require the code. I tried a lot using Jquery but the problem is yet not solved.

Thanks in advance.

推荐答案



您可以使用:

this.dataGridView1.Columns ["toto"].Visible = false;

祝你好运

杰瑞姆(Jerem)
Hi,

you can use this :

this.dataGridView1.Columns["toto"].Visible = false;

good luck

jerem


这篇关于使用上下文菜单隐藏/显示gridview列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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