c# - Binding to nested Property of Custom Object -


I want to pair a column of my datagrid in a nested property.

I have defined these two classes:

  see public class of games {public ccr car {receives; Set; } The name of the public string {get; Set; }} Public class cCar {public int ps {get; Set; } Public In Wheels {get; Set; }}  

Class CCR is the property of classroom view I

I have a list & lt; ViewObj>, which I bind to my datagrid

I want to attach the "Wheels" property to the first column of the Datagrid.

How can I use the "Wheels" property of the CCR class, which is part of the ViewObz

Thank you!

Try

  {binding car. Wheels}  

Comments