How To: Group Column Headings In WPF.

Posted by VoidDweller on Stack Overflow See other posts from Stack Overflow or by VoidDweller
Published on 2010-04-16T00:25:13Z Indexed on 2010/04/16 0:33 UTC
Read the original article Hit count: 406

Filed under:
|
|
|
|
    --------------------------------------------------------------------------
    |[  Common Category  ]|[ Dynamic Category  0 ]|[   Dynamic Category N   ]|
    --------------------------------------------------------------------------
    |[Header 1]|[Header 2]|[  Type 0  ]|[ Type N ]|[  Type 0   ]|[  Type N  ]|
    --------------------------------------------------------------------------
    |[Data 2 Group]                                                          |
    --------------------------------------------------------------------------
    |  Data A  | Data 2  ||    Null    |  Data 1  ||   Data 0   |  Data 1   ||
    |  Data B  | Data 2  ||   Data 0   |   Null   ||   Data 0   |  Data 1   ||
    --------------------------------------------------------------------------
    |[Data 1 Group]                                                          |
    --------------------------------------------------------------------------
    |  Data C  | Data 1  ||    Null    |  Data 1  ||   Data 0   |  Data 1   ||
    |  Data D  | Data 1  ||    Null    |   Null   ||   Data 0   |   Null    ||
    --------------------------------------------------------------------------

Dynamic Category:

  1. Columns can be 0 or more.
  2. Must contain 1 or more Type Columns.
  3. Will only be displayed if any row contains Type Column data associated with it.

Data Rows:

  1. Will be added Asynchronously.
  2. Will be grouped by a Common Category column.
  3. Will add a Dynamic Category if it does not yet exist.
  4. Will add a Type Column if it does not yet exist within its appropriate Dynamic Category.

Platform Info:

  • WPF
  • .Net 3.5 sp1
  • C#

I have a few partially functional prototypes, but each has it's own major set of problems. Can any of you give me some guidance on this? A working prototype would be even better!

Envision this nicely styled. :-)

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listview