How do I show an image in a DataGrid Row and also show the row number

Jun 24, 2009 at 7:21 PM


I am looking for a way to show an image for the rows in a datagrid. At the same time I want to the seq no of the row (row index). Is there any way to do this ?

I tried using RowHeaderTemplate. I can display a static image there. But what I really need is to display a different image based on the value in a column. Is there a way to access the DataRow or DataViewRow whose data is being shown here ?