想在列表视图中显示列表视图 [英] want to show listview inside the listview

查看:101
本文介绍了想在列表视图中显示列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我想在列表视图中显示列表视图

对于例如
类Compnay
名称为字符串
将empolye列为List(属于Empolye)
结束课

类Empolye
名称为字符串
结束课

nowi wnat可以在列表视图中显示数据,例如

公司名称
员工名称
EmployeName
公司名称
员工名称
员工名称

hi friend,

i want to show listview inside the listview

for eg
class Compnay
name as string
List empolye as List (Of Empolye)
end class

class Empolye
name as string
end class

nowi wnat to show data in list view like this

Company name
Employename
EmployeName
Company Name
Employename
Employename

can any one provide me code for this in wpf using VB.net(Windows application)?

推荐答案

使用数据模板并将其用作视图:
数据模板 [
Use a datatamplate and use that as the view:
datatamplate [^]


这篇关于想在列表视图中显示列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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