Link to home
Start Free TrialLog in
Avatar of JRockFL
JRockFLFlag for United States of America

asked on

Datagridview and generic list

My task class exposes a developer object
    Public Property Developer() As Developer
        Get
            Return mDeveloper
        End Get
        Set(ByVal value As Developer)
            mDeveloper = value
        End Set
    End Property


How can I access this while binding?

This is what I have tried and it does not display the full name.

dgvTasks.AutoGenerateColumns = False

Dim list As New List(Of Task)
Dim task As New Task()
list = task.GetTasks(projectID)

dgvTasks.DataSource = list
dgvTasks.Columns.Add("Description", "Description")
dgvTasks.Columns.Add("FullName", "Developer")

dgvTasks.Columns(0).DataPropertyName = "Description"
dgvTasks.Columns(1).DataPropertyName = "Developer.FullName"
ASKER CERTIFIED SOLUTION
Avatar of Joel Coehoorn
Joel Coehoorn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial