Hi k_cire0426,
You will need to cast your ITypedEntityQuery into an IQueryable:
EntityInstantFeedbackSource efInstantFeedbackSource1 = new EntityInstantFeedbackSource();
efInstantFeedbackSource1.KeyExpression = "LastName";
efInstantFeedbackSource1.GetQueryable += efInstantFeedbackSource1_GetQueryable;
gridControl1.ItemsSource = efInstantFeedbackSource1;
void efInstantFeedbackSource1_GetQueryable(object sender, GetQueryableEventArgs e) {
NorthwindIBEntities mgr = new NorthwindIBEntities();
IProjectionSelector selector = new ProjectionSelector("LastName");
selector = selector.Combine("FirstName");
var rootQuery = EntityQuery.Create(typeof(Employee), mgr);
var query = rootQuery.Select(selector);
e.QueryableSource = (IQueryable)query;
}
Regards,
Silvio.
Edited by sbelini - 08-Feb-2012 at 6:53pm