hi.....
Now you need to use the databinding event for this functionality
protected void GridView1_DataBinding(object sender, EventArgs e)
{
int i = 0;
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowIndex % 2 == 0)
{
((Label)row.FindControl("Label1")).Text = "odd";
}
else
{
((Label)row.FindControl("Label1")).Text = "even";
}
i++;
}
}
in this user can set any property of the control.
Here is the example of Text Property you can use any condition and based on that set the visibility property also.