How does the DataGridView of Winform bind objects in objects?

there is a list to put into the DataGridView, which looks like this:

class User{
    int id;
    string name;
    int age;
    Job job;
}
class Job{
    int id;
    string name;
    int userId;
}

putting the read list of User type directly into DataGridView cannot display Job related information. How can I display Job-related information?

Mar.28,2021

Thank you for your answers, but I have found a better way to let DataGridView itself support point syntax ~
Winform let your DataGridView control support point syntax (that is, display sub-object properties in list)


create a DataTable

first.
DataTable table = new DataTable();  
table.Columns.Add("ID", typeof(int));  
table.Columns.Add("Name", typeof(string));  
table.Columns.Add("Age", typeof(int));
table.Columns.Add("Job ID", typeof(int));
table.Columns.Add("Job Name", typeof(string));
table.Columns.Add("User ID", typeof(int));

then add content to table

table.Rows.Add(myUser.id, myUser.name, myUser.age, myUser.job.id, myUser.job.name, myUser.job.userId);

bind table to DataGridView:

myDataGridView.DataSource = table;

myDataGridView.DataSource = users.Select (user= > user.job). ToList ();

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b387b0-e668.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b387b0-e668.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?