Here Mudassar Ahmed Khan has explained, how to display Image based on condition in GridView in ASP.Net using C#.
The ImageUrl property of the Image control is set with an Inline Expression which compares the value of the column and based on the value, the respective Image URL is returned which is used to conditionally display the Image in GridView.