 				# used to set row visibility
 				DOM.data(tr, "data-field", field)
 
+				if grid
+					tr.setAttribute("data-cui-grid", grid)
+
 				table.appendChild(tr)
 			else
 				row = CUI.DOM.element("DIV", class: "cui-form-row", "data-for-field": field.getUniqueId())

					# 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()


			field = fields[field_idx]
			hint_div = null
			grid = field._form?.grid

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

