[NOTE: This was originally posted at DevAuthority.com on 7/19/2005.]I was recently tasked with applying some logic to an existing page where a datagrid was used to add and edit data. This is nothing uncommon mind you, but I have (believe it or not) never used controls in the footer template. The task involved determining whether specific controls were visible or not at runtime. Since the footer template does not belong to the items collection I would be unable to see this using the EditItemIndex property. After jumping through hoops I found that the...