I have very simple form along with two database tables.
In this form is a ComboBox, which reads the first table tblProjects
. It displays a "Project Name" to the user and when selected, filters a DataGridView, which reads its data from the second table: tblData
.
tblData
does not contain "Project Name" but instead a Guid that both tables share. Each project has a unique Guid, ie 10 projects = 10 Guids.
So naturally, when the table is filtered, it displays the data from that project, however "Project Name" is obviously not one of the values available in that DataGridView, as again, it reads from tblData
.
Is it possible to replace the Guid that is displayed within that DataGridView with the corresponding "Project Name"?