Resolved issue of losing classId and attributes if row edited from the list view of grid.