How do I convert this to C++?

My bad! I’m just dumb, it need something else. But I will leave it for future generations looking for Enum to FName.

auto GridShapeName = UEnum::GetValueAsName(GridShape);
const auto GridShapeData = GridShape.DataTable->FindRow(GridShapeName, “”);