This is a migrated thread and some comments may be shown as answers.

How to set the DisplayMember of GridViewComboBoxColumn to a property of a nested object?

3 Answers 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Diederik
Top achievements
Rank 1
Diederik asked on 24 Jan 2011, 03:47 PM
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?

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.

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 27 Jan 2011, 08:54 AM
Hello Diederik,

Currently, our RadDropDownList control does not support sub property binding. We know about this limitation and we plan to implement the feature in our upcoming release - Q1 2011. 

Should you have any further questions, do not hesitate to ask.

Greetings,
Jack
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Francois
Top achievements
Rank 1
answered on 21 Mar 2011, 03:30 PM
Hi, has to feature been added into Q1 2011? I don't see anything about that in the release history...

Thanks,

Frank
0
Jack
Telerik team
answered on 24 Mar 2011, 09:42 AM
Hello Francois,

This issue did not succeed to get in our latest version. However, it has a high priority and we will try to address it in our next service pack.

Kind regards,
Jack
the Telerik team
Tags
GridView
Asked by
Diederik
Top achievements
Rank 1
Answers by
Jack
Telerik team
Francois
Top achievements
Rank 1
Share this question
or