Hey cutts,
First of all Im a big fan, read a lot of your posts, I can see that youre a big contributer to the community...
Thanks for the idea, I actually remembered something similar in one of your other posts and I will try it out soon.
However, I just tried my approach and found an interesting situation which I would like to share if anybody are interested...
Just to make it clear I now have a "file_content" column, binary, (holding the file I need) and "file_icon" column, varchar(10), (which should show the availability status as well as the available link to another grid that is set to catch the row ID in which the icon was clicked and force the related file to download).
The funny thing is that if the value of "file_icon" IS NULL then no icon/link is shown for the specific row, it is just blank in the grid. That provides me with the two situations I need; if AVAILABLE then "file_icon" value is not null and the grid shows the icon I set in the 2-configuratior, if UNAVAILABLE then no icon is shown since the value for "file_icon" IS NULL.
Given this, I figured that the only thing I need to do is create a short and simple "CASE WHEN THEN" sql statement whenever "file_content" is manipulated, putting this code as part of "on update" or "on insert" actions :-)
Ill update if any interest,
Cheers, Dave