MappingName problem  
Author Message
Annihil8





PostPosted: .NET Compact Framework, MappingName problem Top

Hi,

i've got two tables.

Order and product.

Order : id

amount

product(object)

Product : id

Description

In my code use

DataGrid1.datasource = Order[]

I create a tablestyle and I start to map the properties with (MappingName = "PropertyName")

But what do I have to use If I want to show the product.description in the datagrid instead of the productobject

Grtz
Dennis




Smart Device Development4  
 
 
Ilya Tumanov





PostPosted: .NET Compact Framework, MappingName problem Top

You can not set mapping name to fetch data from another table.

You can:

1. Create computed column Description in table Order and set expression to grab value from table Product, column Description.

2. Override cell painting in NETCF V2 SP1 and draw any value you want.



 
 
Annihil8





PostPosted: .NET Compact Framework, MappingName problem Top

I've used option one indeed.
About option 2: NETCF V2 SP1 is just released. Let's us say it is too "soon" to use it