Bind to property of the first element in EntityCollection: Silverlight 4

I have an object called BetaTestDevice that has an EntityCollection property called BetaLogData. I have a GridView displaying details about BetaTestDevice. My users would like to display FirmwareVersion from the last BetaLogData entry in the mentioned GridView. If it were a different type of collection, I could use

Text="{Binding BetaLogData[0].FirmwareVersion}"

How can I do this with an EntityCollection? I tried the converter, but the parameter value of the object that seems to be passed is a beta log (the only one).

+3
source share
1 answer

I was able to do this using a value converter. I didn’t handle zeros correctly.

+2
source

All Articles