Hi,
I have a LookupEntity type with a property Description of type MultilingualDescription - see snippet below. I want to use a list of LookupEntities as DataSource of a GridViewComboBoxColumn. The ValueMember should be the Code and the DisplayMember should be LookupEntity.Description.French
How can I achieve this?
Thanks in advance.
I have a LookupEntity type with a property Description of type MultilingualDescription - see snippet below. I want to use a list of LookupEntities as DataSource of a GridViewComboBoxColumn. The ValueMember should be the Code and the DisplayMember should be LookupEntity.Description.French
How can I achieve this?
Public
Class
LookupEntity
Private
_id
As
Integer
Private
_code
As
String
Private
_description
As
MultilingualDescription
Public
Property
Id()
As
Integer
Get
Return
_id
End
Get
Set
(
ByVal
value
As
Integer
)
_id = value
End
Set
End
Property
Public
Property
Code()
As
String
Get
Return
_code
End
Get
Set
(
ByVal
value
As
String
)
_code = value
End
Set
End
Property
Public
Property
Description()
As
MultilingualDescription
Get
Return
_description
End
Get
Set
(
ByVal
value
As
MultilingualDescription)
_description = value
End
Set
End
Property
End
Class
Public
Class
MultilingualDescription
Private
_french
As
String
Private
_dutch
As
String
Public
Property
French()
As
String
Get
Return
_french
End
Get
Set
(
ByVal
value
As
String
)
_french = value
End
Set
End
Property
Public
Property
Dutch()
As
String
Get
Return
_dutch
End
Get
Set
(
ByVal
value
As
String
)
_dutch = value
End
Set
End
Property
End
Class
Thanks in advance.