Unbound lookup field

I have a 'Type' integer field in a table where the number is an enumerated value such as:
0 = None
1 = Measured
2 = Checked

I want to display the friendly name without having to create a lookup table. I created a property 'types' which is a dictionary that holds the values above. In the datagrid I create a template for the 'Type' column and I dropped a label with the Text property set to ${types[data.Type]}... but that does not build... (Error: The name 'data' does not exist in the current context)

Thanks

Hi @semafox,

We are not sure what you have done based on the description. You can send us your project to info@radzen.com so we can troubleshoot.