I'm trying to use a filter with my grid like this example:
but, if I use this sample code:
|ObjContext entities = new ObjContext();
|ObjectResult<EntitiesResult> myEntities = entities.usp_get_entities();
The filter doesn't affect the grid. However if I use this sample code:
|DataTable dtEntities = DataBase.ExecuteReaderDt(CommandType.StoredProcedure, "USP_GET_ENTITIES");
The filter works fine.
Note that is the same stored procedure for both cases.
something? For EF is a different way?
Another question is:
How can I remove a field from filter, like: The customer's ID. I don't want this field in filter. How can I remove it?