如何在Windows窗体的树视图中添加多个列 [英] How to add multiple columns to treeview in windows forms

查看:89
本文介绍了如何在Windows窗体的树视图中添加多个列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生和朋友们

我正在一个Windows应用程序上工作.

在解决此问题时,我遇到了一个问题.我想在树视图中添加两列.

像这样


       Col2

+节点1

-child1     ComBobox
-child2    ComBobox

+节点2
.
.
..

我在过去3个小时内一直在努力争取任何帮助....


谢谢您……

Hi dear sir''s and friends

I am working on one windows application.

While working on this i am facing one problem.I want to add two columns to treeview.

like this


  Col1     Col2

+ node 1

-child1      ComBobox
-child2      ComBobox

+ node 2
.
.
..

I am struggling on this from past 3 hours any help please....


Thanking you......

推荐答案

然后您需要为此创建我们的自定义控件,您可以在其中继承可以帮助您的树类.

该文章将帮助您...

视觉样式元素浏览器 [
Then You Should Need to create our Custom Control for that in which have you can inherit the tree class that can help you.

That Article will help you...

Visual Style Element Browser[^]


http://www.homeandlearn.co.uk/csharp/csharp_s9p7.html [ http://www.dotnetperls.com/treeview [
http://www.homeandlearn.co.uk/csharp/csharp_s9p7.html[^]
http://www.dotnetperls.com/treeview[^]


这篇关于如何在Windows窗体的树视图中添加多个列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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