Populating fields in a Matrix format

Discussion created by sxt128130 on Apr 10, 2013
I am trying to develop an accuracy assessment tool using ArcObjects. As an output I would like to show a matrix with the fields such as road ,land,water etc. These fields will be there in the excel sheet which i will be using as a reference and also in the classified raster. I just want to know how can i fetch unique values from the excel sheet and the raster value attribute table into a matrix format. What object can I use for it.
As of now it looks like this


I want to populate the row and column headers automatically from the excel sheet and the raster table.

Thank You.