Excluding / Including fields question?

Posts   
 
    
chungpn
User
Posts: 39
Joined: 23-Mar-2011
# Posted on: 28-Mar-2011 10:03:35   

I use Excluding / Including fields for fetches a collection and binding its to a grid but the result grid will remain the fields headers? (the grid show header of the fields removed with empty colunm content).

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 28-Mar-2011 10:19:23   

Normal. The values of the fields were excluded from the fetch, but the fields are there in the entities.

You'll need to edit the Grid's Columns list to hide or remove the unwanted fields.

chungpn
User
Posts: 39
Joined: 23-Mar-2011
# Posted on: 28-Mar-2011 10:51:28   

Thks and I have one question, please help

what is the diff between these line of code

CustomerCollection customers = new CustomerCollection();

and

EntityCollection<CustomerEntity> customers = new EntityCollection<CustomerEntity>();

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 28-Mar-2011 16:52:47   

The former is a Typed Entity Collection, these classes are generated when using the Self Servicing Template Set (only).

The later is the Generic form, please google for .NET Generics for more details.