I am displaying a list of a specific object (Bag) on a DataGridView. This object, contains other objects, for example, an object Book.
What I've done:
BagList = List(Of Bag)
After filling the list:
DataGridView1.DataSource = BagList
So on the book attribute of the DataGridView, I find that on the column "Book", is populated with the classname (BOOK), but I would like to display its id attrbute.
Is there any way to make the datagridview to show an attribute of the object BOOK and not trying to show the object itself on that field?