I have a database table that records medical tests. Each patient only takes certain tests, so out of the 10 columns, they will only have data in 4 or 5 of them.
I want to fill a dataGridView on a new form with 2 columns, one with the Column Name, and the second where a doctor can record the lab result.
Picture of the SQL database
Patient Num WBC Cholesterol Pregnant Herpes
Jon Doe "" "" NULL NULL
Desire for WinForm
DataGrid View
WBC ______
Cholesterol _______
Once the doc enters the values I will update the database.
I thought of doing this at first with XML, and I was able to write XML to the database with blank attributes, but had a hard time updating attributes and thoguht creating this new table would be better.
Loading

Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 10, 2012, 4:11 PM EDT
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 10, 2012, 7:33 PM EDT
evan liewer25 reputationPosted Sep 11, 2012, 7:52 AM EDT
Akkiraju IvaturiRank #473 · 5.3K reputationPosted Sep 11, 2012, 4:29 PM EDT
evan liewer25 reputationPosted Sep 12, 2012, 5:36 AM EDT
Thanks guys.