I have a DataGridView populated with Dapper, and it’s working well displaying employee info as expected. However, I’d like to specify that the Job Title column not display the JobTitle object (WorkDesk_Library.Models.Admin_Info.TitleModel), which is an Employee property, but the Name property of that JobTitle object. Here is my query:
And here is where I call it:

EDIT:
I’ve been Googling and seem to be closer to the answer, but I’m not there yet. Here’s the code:

Try creating an override of the the ToString() method of the JobTitle object to return the Name property.

Where are your column header titles coming from?
Dapper is returning Employee objects with the properties mapped appropriately. These properties are the names of my columns. It works fine when the property is a string, but it doesn’t work at all when the property is a class of it’s own and I need to return that class’s property. (When I’ve figured this out, the next step is to find a way to make a column for a list property of emails.)

Why are you using a component, it’s just more work a Html table with a loop will work just as well,

I’m sorry, I should have specified: I’m using .NET Framework to build a desktop application. HTML tables are still strictly a web development thing, right? It’s been some years since I wrote HTML.

source