Change properties of controll inside of a datagrid
I have a datagrid that has an image button in the rows of a particular column. I want to make the button visible in some of the rows but not others based on a conditional statement.
I can't seem to figure out how to check this and make the button hidden before the datagrid is rendered.

