We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column header grouping

Thread ID:





23421 Jan 12,2005 01:00 PM UTC Jan 12,2005 04:11 PM UTC WinForms 2
Tags: GridControl
Michael Prince
Asked On January 12, 2005 01:00 PM UTC

I''m having a hard time finding out how to create columns that can be grouped. I don''t believe that what I''m asking for has anything to do with the grouping product. I simply want to be able to group columns like so: Employee Spouse First|Last First|Last The datasource that the grid is attached to contains 4 columns in this example. Employee_First,Employee_Last,Spouse_First,Spouse_Last. You can find an example of what I''m trying to do at: http://www.amerexenergy.com/temp/gridexample.xls Please let me know if you need further clarification. Thank you.

Administrator [Syncfusion]
Replied On January 12, 2005 04:07 PM UTC

If you want to use a GridControl, you can just set this up using coveredcells, Rows.HeaderCount and setting the values in the cells. Getting teh clicks to work takes more effort. But if you want to use a GridDataBoundGrid, it becomes more work because of the binding. Here is a sample of a helper that wraps the functionality needed to add header rows and let the bottom header row move columns, double-click sort columns, and size columns. You may need to tweak the code to get the exact functionailty that you need.

Michael Prince
Replied On January 12, 2005 04:11 PM UTC

Thank you Clay. I''ll take a look at it.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon