[英]C# How i can expand an item in a listview to get multiple line with a new column in windows application
Recently i worked with a ListView(details view) in c#.I want to implement the behavior when i select an item it expand with multiple line also with a new column.Where expanded line data come from MySql db.That means selected line have a connection with Mysql Db.最近我在 c# 中使用了一个 ListView(详细信息视图)。我想在我 select 一个项目时实现该行为,它用多行扩展也带有一个新列。扩展行数据来自 Z9DF306F03DAEDCCF83F5E2983DB与 Mysql Db 连接。
Is it possible to extend list view item with multiline column with multiple line?If so, is there a good resource that I can use to help me?是否可以使用多行的多行列扩展列表视图项?如果是这样,是否有一个很好的资源可以帮助我?
The system ListView does not support that.系统 ListView 不支持。 What you need is a combination of treeview and listview, usually called a TreeListView.
您需要的是 treeview 和列表视图的组合,通常称为 TreeListView。
Search for TreeListView on google and you will get many such controls, some free, some commercial.在 google 上搜索 TreeListView,你会得到很多这样的控件,有些是免费的,有些是商业的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.