I'm stuck on the SetBinding method.
I would like to have 2 kinds of icons in the table, there will be a boolean property and the shown icon will depend on this property. Here is an example :
The problem is that I can´t change the icon. I've tried to google it for about 3 hours, without success.
My idea was to put there Image control and than change the source dependenig on property, but i couldnt find out how to change image source.
So I tryed to create custom sample with image template and SetBinding and here I am stuck...
int index = 0;
foreach (var item in this.VidContentItems) {
if (item.Active == false) {
this.FindControlInCollection("TrueOrFalse",
this.VidContentItems.ElementAt(index)).SetBinding(?????????);
}
index++;
}
Or maybe I'm totally wrong...