在datagridview的复杂布局 [英] Complex layout in datagridview

查看:412
本文介绍了在datagridview的复杂布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图完成这样的事情:

I'm trying to accomplish something like this:

使用的DataGridView这可能吗?或ListView,或在Windows窗体中任何其他成分? 注意到在彼此顶部的填充和(最重要的)的标签。

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?

推荐答案

您必须创建一个用户控件的每个项目,然后你可以使用<一个href="http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.powerpacks.datarepeater.aspx">DataRepeater或<一href="http://msdn.microsoft.com/en-us/library/system.windows.forms.flowlayoutpanel.aspx">FlowLayoutPanel.

You have to create a UserControl for each item and then you can use a DataRepeater or a FlowLayoutPanel.

我做这样的事情过去用的WinForms,所以你可以肯定的是这是可行的。看起来像WPF已抹去我所有的previous上的WinForms知识,kindof病毒:)

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屋!

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