简体   繁体   English

WPF Gridview绑定到列

[英]WPF Gridview bind to columns

Is it possible to bind objects to gridview columns, instead of rows? 是否可以将对象绑定到gridview列而不是行? I want to have te following: 我想要以下内容:

            Tom     Jan     Wim
LastName    Last1   Last2   Last3
Age         18      20      23      
Number      1       2       3

A list of objects (Tom, Jan and Wim) must be binded to column 1-3. 对象列表(Tom,Jan和Wim)必须绑定到1-3列。 The first column must be frozen for scrolling and dragging. 必须冻结第一列才能进行滚动和拖动。 The three data columns can be dragged to reorder them. 可以拖动三个数据列以对其重新排序。

Can somebody help me out to start developing this? 有人可以帮我开始开发这个吗?

http://blogs.microsoft.co.il/blogs/tomershamam/archive/2008/09/22/lt-howto-gt-replace-listview-columns-with-rows-lt-howto-gt.aspx http://blogs.microsoft.co.il/blogs/tomershamam/archive/2008/09/22/lt-howto-gt-replace-listview-columns-with-rows-lt-howto-gt.aspx

That link might be just what you are looking for, not with a GridView but a ListView, though. 该链接可能只是您要查找的,而不是GridView,而是ListView。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM