datagridview中的复杂布局 [英] Complex layout in datagridview
问题描述
我正在尝试这样做:
I'm trying to accomplish something like this:
这可能与datagridview?或ListView或Windows窗体中的任何其他组件?
请注意paddings和(最重要的)标签在彼此之上。
Is this possible with datagridview? or ListView, or any other component in windows forms? Notice the paddings and (most important) labels on top of each other.
如何在C#.NET中完成这个?
How can I accomplish this in C# .NET?
推荐答案
您必须为每个项目创建一个 UserControl
,然后您可以使用 DataRepeater 或 FlowLayoutPanel 。
You have to create a UserControl
for each item and then you can use a DataRepeater or a FlowLayoutPanel.
我以前用WinForms做了这样的事情,所以你可以确定它是可行的。看起来WPF已经删除了我以前的所有关于WinForms的知识,一种病毒:)
I did things like this in the past with WinForms, so you can be sure that it's doable. Looks like WPF has erased all my previous knowledge on WinForms, kindof a virus :)
这篇关于datagridview中的复杂布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!