CSS Property:
grid-auto-flow:

Result:
1
2
3
4
CSS Code:
#myDIV {
display: grid;
grid-auto-flow: row;
}
Click the property values above to see the result
W3Schools.com - Play it