This is a migrated thread and some comments may be shown as answers.

Binding Self Referencing RadGridView Dynamically in WPF

0 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ramasamy
Top achievements
Rank 1
Ramasamy asked on 25 Sep 2011, 04:41 AM
Hi,

In the Self referencing radgridview, I need to implement the below items

1. Multiple row headers (dynamically)
2. Binding the List Collection to the grid

For example, the grid should look like
------------------------------------------------------------------------------------------------------------------
                                 MICROSOFT             |                           TELERIK
------------------------------------------------------------------------------------------------------------------
Topic         |       .NET    |    Sharepoint       |     RadGridView    |    RadContextMenu
------------------------------------------------------------------------------------------------------------------
- T1           |         xyz     |      abc                 |            34            |           25
    - T11     |                   |                            |                            |            zzz
 -------------------------------------------------------------------------------------------------------------------

I have the LINQ query list as below

CompanyID | Company Name | ProductID | Product Name        | Topic ID | Topic Name|  Parent Topic ID | Value ID | Value
        1         |  Microsoft           |  1              |   .NET                    | 1            |  T1              |       NULL           |     1         | xyz
        1         |  Microsoft           |  2              |   Sharepoint           | 1            |  T1              |       NULL           |     2          | abc
        2         |  Telerik              |  3              |   RadGridView        | 1            |  T1              |       NULL           |     13        | 34
        2         |  Telerik              |  4              |   RadContextMenu | 1            |  T1              |       NULL           |     15        | 25
        2         |  Telerik              |  4              |   RadContextMenu | 2            |  T11            |       1                  |     19        | zzz

and I am having this query result in List<myClass>. myClass is having fields and properties for the above mentioned table.
Please help me to achieve this with some sample code.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Ramasamy
Top achievements
Rank 1
Share this question
or