如何将切换控件添加到数据网格视图 [英] How to add toggle control to data grid view

查看:68
本文介绍了如何将切换控件添加到数据网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,您好,

如何将切换控件添加到数据网格视图.在我的项目中,如果我单击该切换控件,则我将显示主要活动,它必须展开并显示其子活动.如果我再次单击它必须折叠子活动..

谢谢你
问候

Amul M. Parutagale

hallo sir,

How to add toggle control to data grid view. In my project i am going to show main activities if i clicked on that toggle control it has to expand and show its sub activities. if i click again it has to collapse the sub activities..

thank you
regards

Amul M. Parutagale

推荐答案

Amul,

datagridview不存在这样的切换按钮.您可以通过设置布尔值来管理代码,并相应地更改按钮的文本.
您也可以为此开发自定义控件.

V.Vishal
Hi Amul,

No such toggle button exists for datagridview. You can mange the code by setting Boolean value and change text of button accordingly.
Also you can develop a custom control for this.

V.Vishal


这篇关于如何将切换控件添加到数据网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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