Change properties of controll inside of a datagrid

I am new to C# and ASP.Net and I am running 1.1

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.
[353 byte] By [zander8778] at [2007-11-20 11:36:01]