I am attempting to add an image to the gridview command column programmatically depending on certain conditions. I can add an image through the property builder for all the rows, but how do I do this with code?
2 Answers, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Nov 2015, 01:22 PM
Hello Mark,
Thank you for writing.
You can use the CellFormatting event and apply the desired image to the GridCommandCellElement.CommandButton.Image property:
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items