AD
Administrator
Syncfusion Team
June 11, 2004 11:10 AM UTC
We currently do not support accessing nested properties in this manner.
You could use an event to swap out what is displayed. You could use either PrePareViewStyleInfo or model.QueryCellFormattedText to handle this.
You would just set the MappingName to gbc.MappingName = "IncType".
Then in PrepareViewStyleInfo if e.RowIndex > 0 and e.ColIndex points to this column, you can retrieve the IncType object from e.Style.CellValue, and then set e.Style.Text equal to the IncType.IncomeTypeName value.
LP
Lee Perkins
June 11, 2004 11:22 AM UTC
Thanks for the suggestion. The solution I just finished testing and implementing was to override ToString() in the IncomeType class to return the IncomeType.IncomeTypeName, then just bind the "IncType" property to the column. Worked like a champ! :)
-----
Lee Perkins