.NET (WinForms) Grid Control with Collapse/Expand Capabilities

房东的猫 提交于 2019-12-06 05:06:48

问题


Anybody purchased/used a DataGrid/GridView control that allows Collapsing/Expanding Parent-Child relationships?

The standard DataGrid control, which I am using in .NET 2.0, seems to have limited capabilities with regards to this functionality. The newer GridView control doesn't support this at all to my knowledge.

I was thinking about developing a custom control but that could get expensive for my client..

I need this control for WinForms (not ASP.NET)

thanks


回答1:


We've used Janus Grids here for years, very powerful, but have recently started using Developer Express controls on new products . . . they seem to be even better (but I haven't used them much at all yet).

Both should give you what you need.




回答2:


Xceed do a very full featured library for these. There are WPF and WinForms implementations.

I have had a lot of success with older versions, I haven't upgraded in a while though.

The parent child aspect is fully customizable and can go to arbitrary[1] depths.

[1] well int.MaxValue but you'd never get there




回答3:


The NOV Grid for .NET (available for WinForms and WPF) includes a TableGrid and a TreeGrid. The Tree Grid Self-referencing produces a tree-like structure from a tabular data source.

The Grid component can be used in projects targeting .NET 2.0, 3.0, 3.5, 4.0, 4.5 or higher. It is also available as Portable Class Library (PCL).

Full disclosure - I work at Nevron




回答4:


VIBlend has a hierarchical grid control which will likely address your needs. It's a WinForms implementation.




回答5:


Look at 10Tec's WinForms Grid iGrid. Here is the article from the 10Tec website related to your question: http://10tec.com/articles/treeview-in-datagridview.aspx



来源:https://stackoverflow.com/questions/532335/net-winforms-grid-control-with-collapse-expand-capabilities

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!