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:
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:
Please let me know if you need further clarification.
ADAdministrator Syncfusion Team 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.