lingers says:
DataNavigateUrlFormatString="CustomerDetails.aspx?Id={0}".The image cant perform this function
Also ImageField can't perform this function.
This is the function of HyperLinkField.
ImageField is used to display image not for redirecting.
In ImageField you can set only the belows.
1. DataImageUrlField
2. DataAlternateTextField
3. DataAlternateTextFormatString
4. DataImageUrlFormatString