Bind DataGridTextColumn to Lookup

Jul 6, 2009 at 7:41 PM

How does one go about binding a TextColumn to show the lookup value, with the DataContext holding the key for the value?

To keep it simple, let's say there is a CollectionViewSoure bound in code to a Dictionary<int,string>, and the lookupField is referralStatusCode, and I want to display the string from the DictionaryEntry.

Jul 7, 2009 at 1:09 PM

Wow, am I the first or only person to want to bind readonly lookup fields to the Datagrid? Bump.