Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Template to bind a Hierarchical Data in a DataGrid...

$
0
0

Hello,

In my application, I have a employee class. Each Employee class is having following properties:

  • Name : string
  • ID : Int32
  • Designation : string
  • Subordinates (Collection of Employees reporting to this Employee) : Employee[]


I want to display, Employee data in a DataGridRow with columns mentioned as Name, ID, Designation. For Subordinates property the grid row should display collection child Employee rows. Something like a TreeView stucture in the first column of 'Name'

How i can do this using templates?

Thanks,

IamHuM


Viewing all articles
Browse latest Browse all 18858

Trending Articles