简体   繁体   English

C# 如何扩展列表视图中的项目以在 windows 应用程序中获得多行与新列

[英]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.

相关问题 c#如何在ListView中展开项目以占用多行? - c# How can I expand an item within a ListView to occupy multiple lines? 如何防止将新项目添加到C#Windows窗体Listview? - How to prevent adding a new item into the C# Windows Form Listview? 如何在C#Windows应用程序中将选中的列表框的选定项添加到datagridview中的特定列? - how can i get the selected items of a checked listbox to a particular column in datagridview in c# windows application? C#如何在子视图上获取子项,使其与项目保持同一行? - C# How to get the subitem on a listview to stay on the same line as the item? 如何在C#中使用Caliburn.Micro从ListView获取选定的项目和事件? - How can i get selected item(s) and events from ListView with Caliburn.Micro in C#? C#Windows窗体应用程序:如何在不删除原始文件的情况下替换文本文件中的一行? - C# windows forms application:How can I replace a single line in a textfile without deleting the original file? 如何在C#Windows应用程序中获取网格的列值? - How to get column value of grid in C# Windows application? 如何防止C#应用程序在上下文菜单期间打开新窗口? - How can I prevent my C# application from opening new windows during context menu? 如何在c#中从第二个项目开始获取新数组? - How can I get a new array from the second item onwards in c#? 如何在C#Windows应用商店应用中获取新的默认WebProxy对象? - How can I get a new default WebProxy object in a C# Windows Store app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM