.NET 1.1 DataGrid Table Styles

Posts   
 
    
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 30-Nov-2006 13:49:33   

Hi all,

I am struggling getting only certain columns of an Adapter EntityCollection to display in a .Net 1.1 Winforms Datagrid.

This is what I have done so far:

  1. Add the EntityCollection component to my Toolbox
  2. Drag the EntityCollection to my form
  3. Assigned the EntityFactory
  4. Create TableStyles and assign the mapping property to the columns I want displlayed/formatted

No matter what I do, my table styles are not used... no formatting is done.

Any ideas?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 30-Nov-2006 13:57:39   

llblgen pro v1.0.2005.1 or v2.0 ?

Frans Bouma | Lead developer LLBLGen Pro
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 01-Dec-2006 05:46:53   

Otis wrote:

llblgen pro v1.0.2005.1 or v2.0 ?

Hello Frans, version 2.0 with VS.NET 2003.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 01-Dec-2006 10:39:31   

WHat's the mapping name you specify in the tablestyle? In v2.0 this has changed for adapter. In v1.x this was simply an empty string, but in v2.0 this has changed to a proper name:

Table styles and mapping names When you want to setup table styles in grids, you've to specify the name of the bound object in the MappingName property of the table style. The following rule is used for this mapping name when you bind an entity collection to a grid: The list name of an entitycollection bound to a grid is constructed from the following parts: the LLBLGenProEntityName of an instance created by the factory set for the collection + "Collection". So if the entity factory is set to CustomerEntityFactory, the name is "CustomerEntityCollection".

Frans Bouma | Lead developer LLBLGen Pro
mshe
User
Posts: 167
Joined: 02-Feb-2006
# Posted on: 02-Dec-2006 07:10:43   

Otis wrote:

WHat's the mapping name you specify in the tablestyle? In v2.0 this has changed for adapter. In v1.x this was simply an empty string, but in v2.0 this has changed to a proper name: The list name of an entitycollection bound to a grid is constructed from the following parts: the LLBLGenProEntityName of an instance created by the factory set for the collection + "Collection". So if the entity factory is set to CustomerEntityFactory, the name is "CustomerEntityCollection".

That was magic... stuck_out_tongue_winking_eye stuck_out_tongue_winking_eye stuck_out_tongue_winking_eye stuck_out_tongue_winking_eye stuck_out_tongue_winking_eye

Thank you simple_smile