Can someone show me how to use objects of arbitrary classes for declarative field joining. I use Dapfor WPF Grid. I am looking for anyone with an idea of Gridcontrol to assist me.

Hi buddy, I use Dapfor as well. The properties of these objects return values that are then displayed in corresponding grid cells. However, sometimes a class object doesn't have the required property but only refers to another object that contains the required information.

C# 
class Author 
{ 
public Author(string name) 
{ 
    Books = new List<Book>(); 
    Name = name; 
} 

public IList<Book> Books { get; private set; } 
public string Name { get; private set; } 
} 

class Book 
{ 
public Book(Author author, string name) 
{ 
    Author = author; 
    Title = name; 
} 

public Author Author { get; private set; } 
public string Title { get; private set; } 
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.