Is there some way I can add an image to a coloumn in a datagrid depending on the value of one of the underlying fields. For example if myField = 1 then display this image else display another image.
I cant seem to find any examples anywhere.
Printable View
Is there some way I can add an image to a coloumn in a datagrid depending on the value of one of the underlying fields. For example if myField = 1 then display this image else display another image.
I cant seem to find any examples anywhere.
I'm rather new to this stuff myself, but I think you may want to take a look at the repeater control. It takes more code, but gives you more control of the actual output of the table, of the header, rows, alternate rows, etc...