Hi all,
Searching the forum I didn't find a database example with image column, the image is the same in all columns, say "1.png", but some rows (records) have it while others don't.. so I am doing it
like the following pseudo-code:
1- If a check box, next to imageview1 is checked (true), then imageview1 is loaded with 1.png
and the number "1" will be saved in a hidden column in the database
otherwise imageview1 is loaded with "" and the number "0" will be saved in the same hidden column in the database.
2- When browsing the database, the logical state of the hidden field will be evaluated and if true then 1.png will be loaded to imageview1, otherwise "" will be loaded.
I feel this is not a good coding practice, so please point me to a better code.
Thanks in advance.