# Unbound lookup field

**URL:** <https://forum.radzen.com/t/unbound-lookup-field/5457>\
**Category:** Blazor Server\
**Created:** [October 28, 2020, 7:30pm UTC](https://forum.radzen.com/t/unbound-lookup-field/5457 "2020-10-28T19:30:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![semafox](https://forum.radzen.com/user_avatar/forum.radzen.com/semafox/32/55_2.png) [@semafox](https://forum.radzen.com/u/semafox)\
**Post date:** [October 28, 2020, 7:30pm UTC](https://forum.radzen.com/t/unbound-lookup-field/5457/1 "2020-10-28T19:30:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [October 29, 2020, 6:42am UTC](https://forum.radzen.com/t/unbound-lookup-field/5457/2 "2020-10-29T06:42:02Z")

</div>

Hi @semafox,

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