Get Entitiy Query results as Datasource for Repeater or Grid RRS feed

  • Question

  • Hello,

    I want to get entity query results as a datasource and use it in a repeater.

    Inside the repeater i use <%#Eval("hs_firstname")%> but i get an error when i run my solution.

    My code is:

                    query =

    newQueryExpression("hs_personel") { ColumnSet = new ColumnSet("hs_firstname", "hs_surname", "hs_positionid", "hs_birthdate") };


    "statuscode", ConditionOperator.Equal, 1);

                    result = Portal.Value.Connection.Value.Service.RetrieveMultiple(query);

                    Repeater1.DataSource = result.Entities;


    Error is (i tried to translate, my framework is in my own language):

    {"DataBinding: 'Microsoft.Xrm.Sdk.Entity', there is no property named hs_firstname."}

    Tuesday, November 25, 2014 3:51 PM