Hi, hope some experts here can help me solve my small problem. I have a Repeater with e.g. columns A, B, C, D. D is extracted from a field that determines whether that row has been validated. So, by default, D will be empty if it is a newly created item.
My problem is, I would like to hide D when it is a new item. Only to show D when this row has been validated. I would also like to hide its header too. I can do this in GridView, but not sure how to in Repeater and I definitely has to use Repeater.
This is what I have done in GridView, hope someone can give me an idea how to do it in Repeater.
Thanks in advance!
My problem is, I would like to hide D when it is a new item. Only to show D when this row has been validated. I would also like to hide its header too. I can do this in GridView, but not sure how to in Repeater and I definitely has to use Repeater.
This is what I have done in GridView, hope someone can give me an idea how to do it in Repeater.
foreach ( GridViewRow row in gv.Rows)
{
gv.HeaderRow.Cells[ 0 ].Visible = false;
row.Cells[ 0 ].Visible = false;
}
Thanks in advance!