TypedList

Posts   
 
    
Hameed
User
Posts: 34
Joined: 02-May-2005
# Posted on: 17-May-2005 17:42:28   

Using the Adaptor template.

I have a table with following fields: Firstname, Surname, Address1, Address2, Town, Postcode.

What I want is to bind a typed list to grid but I want to have the following properties in typed list:

Firstname + " " + Surname as Name Address1 + " " + Address2 + " " + Town +" " + Postcode as Address

Is it possible for me to use the LLBLGEN PRO to generate a typed list like such.

If not would I need to use a dynamic typed list.

I am using Compact Framework and hence would like to bind to the grid as quickly as possible.

Any code snippet would be greatly appreciated.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-May-2005 10:46:12   

You can't do that in a typedlist at the moment. You can do that in a dynamic list though (using expressions and the 'Add' operator simple_smile )

Another way to do it is using the datatable's expression column feature. Though you then get redundant data in your datatable, and you then need to setup the grid to which you're binding.

Frans Bouma | Lead developer LLBLGen Pro
Hameed
User
Posts: 34
Joined: 02-May-2005
# Posted on: 19-May-2005 10:20:55   

Thanks Frans,

I will look into dynamic lists.

Hameed

Hameed
User
Posts: 34
Joined: 02-May-2005
# Posted on: 25-May-2005 13:41:03   

Hi Frans,

Another way to do it is using the datatable's expression column feature. Though you then get redundant data in your datatable, and you then need to setup the grid to which you're binding.

I have bound a grid to a datatable using expression feature to concatenate the values that I'm after.

Is it faster to do this or to use a dynamic list?

Hameed.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 25-May-2005 14:08:31   

'depends' wink .

the datatable expression column is executed on the client, thus query is faster, but databinding is slower, using it in the query is faster on the client but slower on the server.

Frans Bouma | Lead developer LLBLGen Pro