How to display Entity Framework value for foreign key

I am working on a grid where I want to show not the value of the connected foreign key, but it should not look ( 1,2,3,57etc.), which already works ... I want to show really value for numbers like ( test,lead,foo,baretc.) I think that it should be possible

I am using Entity Framework 5.0 with asp.net 4.5

My EntityDataSource:

<asp:EntityDataSource ID="EntityDataSource1" runat="server" 
     ConnectionString="name=zevtestEntities" DefaultContainerName="zevtestEntities" 
     EnableFlattening="False" EntitySetName="BU"></asp:EntityDataSource>

I have already tried:

<telerik:GridBoundColumn
    DataField="ZevUser.FirstName" FilterControlAltText="Filter Creator column"
    HeaderText="Creator" ItemStyle-Width="60px" SortExpression="Creator" UniqueName="Creator">
    <ItemStyle Width="60px" />
</telerik:GridBoundColumn>

And ZevUser- this is the original table in which the values ​​are stored as text, is there any other way to do this?

+5
source share
1 answer
+4

All Articles