开发者

Winforms Grouping Gridview

Is there anyway to create a grouping GridView in c# Winforms. for example I have the following data coulmns:

Manager name : Number of reportees : Reporting Manager开发者_开发知识库 name : Designation

I want this to be grouped based on designation as follows:

Project Manager

Manager name : Number of reportees : Reporting Manager name

Associate Project Manager

Manager name : Number of reportees : Reporting Manager name

I have all the data in say Manager Collection.


I don't think the standard DataGridView will do what you want. Infragistics has an UltraGrid control that has support for "group by", which sounds like what you want, but their controls are not free.


I don't think you're missing any functions of the control that will do that for you, I think you need to find a way to use the controls you have to do what you want.

For example, from your 4-col grid, if they click on a cell with a designation 'project mgr', you can open/switch to your 3 col grid with all project manager details.


The following post has provided with a great sample.

http://blogs.vbcity.com/hotdog/archive/2008/12/19/9226.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜