简体   繁体   中英

How Can i View Column Name Values on DataGridView?

alt text http://a.imageshack.us/img835/2255/75787362.jpg

CourseID, ProfessorId and StudentID are foreign keys, i want to print CourseName, ProfessorName, StudentName instead of ID's.

I'm using the wizard (typed dataset).

Note: the three id's are of composite pk as well fk, so no duplicate records will appear.

What can i do?

Just make another table where each id = his name. from there you can invoke all the matching names. Not sure if this is what you are looking for but I hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM