 
 				# used to set row visibility
 				DOM.data(row, "data-field", field)
+
+				if grid
+					row.setAttribute("data-cui-grid", grid)
 
 				table.appendChild(row)
 


			field = fields[field_idx]
			hint_div = null

			if field._form and (not isNull(field._form.hint) or field._form.right)


					# append deprecated stuff to the hint div
					# you should use ".hint" instead
					append(get_append(field._form.right), hint_div)



			if field instanceof Form and field.renderAsBlock()
