开发者

Subrows into a row in GridView using WPF & C#

开发者 https://www.devze.com 2022-12-24 20:47 出处:网络
In my gridview I need to aggregate subrows into each row, something like in p2p emule/amule application where you can do double click to each file you are downloading and then under it you can see the

In my gridview I need to aggregate subrows into each row, something like in p2p emule/amule application where you can do double click to each file you are downloading and then under it you can see the parts of the file from where you are downloading.

Is it possible i开发者_StackOverflow社区n WPF?

Thanks.


You could do a few things:

Add some container (ie: another Grid or a StackPanel) to the Grid row. This would let you add multiple objects to the grid row. On your "double click" event, you could change the visibility to show those objects.

Use a TreeView with a HierarchicalDataTemplate, and treat this as hierarchical data. This is most likely the more "correct" approach. The Displaying Hierarchical Data sample on MSDN walks through the process of this.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号