I have a table with content controls. Once I've populated my table I remove all the content controls without removing the actual contents, except for the first line which I keep so that I can use it if I ever want to repopulate the table. The problem is sometimes there are rows in the first line without values, so that a grey text is shown. The result looking like this-
Is it possible to hide the content control (specifically the grey text) but not completely delete it, so that I could still use it if I later require? I tried everything from setting the color of the text to hiding the content control's font, but have not achieved the results I wish for.
The technical term for grey text is "Placeholder text". Hhere are some basic approaches you can use:
Font.Hidden
property toTrue
so that, while you'll still see it on screen it won't print.The code to do this:
Sample code: