Add grid cell refs as data attributes to grid