grid displayed and unique value array generated