I would think that you'd code two columns, one for email, one for phone. Then you'd use the information in the 3rd column of the dataset but not for display purposes.
First, I'd recommend handling it as an enumeration so you don't have to deal with the magic numbers, stay semantic. Maybe something like RequiredData with Email = 1, Phone = 2, and Complete = 3. Then your code will be referencing RequiredData.Email, RequiredData.Phone, and RequiredData.Complete which will make your code much more semantic and maintainable.
Then you can use RequiredData.Complete to display each column as plain text. If RequiredData comes back missing a piece of information, then set that column to appear not as text (for one thing you don't have any), but a textbox instead. That allows you to immediately capture the data.
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
|