We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
Grid[{{expr11,expr12,…},{expr21,expr22,…},…}]
is an object that formats with the exprij arranged in a two-dimensional grid.
Details and OptionsPut a frame around every element:
Use Text to format grid elements as text:
Scope (42) Elements in Grids (5)Grid can contain elements of any size:
Grid can contain graphics or any other expressions:
Grid can contain active controls:
Create a grid with a single row:
Grid can be used to format grids with no rows, empty rows, or ragged rows:
Frames and Grid Lines (5)Put a frame around the whole grid:
Put a frame around every element:
Put a frame around the first row and column:
Draw different frames with different styles:
Put dividers at all horizontal positions:
Put dividers at all vertical positions:
Put dividers at the third horizontal and second vertical positions:
Spanning Elements (3)Make the element 4 span the column to its right:
Make the element 2 span the row below it:
Alignment (2) Styling (21) Background Colors (13)Draw the grid with a light blue background:
Make the first columns light blue and gray:
Make the first rows light blue and gray:
Make all rows except the first one gray:
Make the first and last rows light blue:
Use a repeating pattern for rows:
Make the first row gray, then a repeating pattern of none and light blue:
Combine a final column highlight with a repeating row pattern:
Highlight a specific column using its column index:
Specify colors for the first two rows, and then additional rows using a column index:
Specify rows as a repeating pattern with an exception specified with its row index:
Make the first column and last column light blue:
Item Styles (8)Set the font color of the individual items to be red:
Specify a style for the first column:
Specify a style for the first row and column:
Specify a complex style for the first row:
Set all item contents to be blue, except for the first row:
Alternate complex styles by row:
Embed styling options with a particular grid item:
Spacing (4)Make each row and column just big enough to fit the items they contain:
Leave the same amount of space for all items:
Set the horizontal spacing between items:
Set the horizontal and vertical spacings:
Options (36) Alignment (2)Align elements around the center of the grid:
Align numbers on the decimal point:
AllowedDimensions (1)Create a grid that can have between 2 and 4 columns and between 3 and 5 rows:
Background (7)Draw the grid with a pink background:
Pink and gray backgrounds for the columns at the first and second horizontal positions:
Pink and gray backgrounds for the rows at the first and second vertical positions:
Alternating pink and gray backgrounds:
Alternating backgrounds with yellow superimposed in the first and last positions:
Set the background for specific items:
Set the background for a subregion of the grid:
BaselinePosition (3)Align the center of the grid with the baseline of surrounding text:
Align the bottom of the grid with the baseline:
Align a specific grid element with the baseline:
Dividers (3)Draw a divider at every other horizontal position:
Draw dividers with specified styles:
Frame (4)Frame all elements in the grid:
FrameStyle (3)FrameStyle supports a variety of graphics directives:
FrameStyle is applied to all sources of grid lines, including Dividers and Item:
Directives given with FrameStyle are combined with those specified elsewhere:
ItemSize (4)Make each item a fixed number of character-widths wide:
ItemSize->All makes all items the same size:
ItemSize->Automatic line-wraps textual items at the page width:
ItemStyle (5)Set one overall style for grid items:
Use Directive to wrap multiple style directives:
Use a style from the current stylesheet:
Spacings (4)Insert no additional space between rows or columns:
Insert no additional space between rows:
Specify spacing with numeric values:
Use different spacings at the first vertical divider:
Applications (2)A simple user interface layout:
Properties & Relations (1)The elements of a Grid can be extracted with Part:
Possible Issues (2)Styles given in a list will be interpreted as corresponding to successive columns or rows:
Directive groups styles into a single collective unit:
To span across both rows and columns requires appropriate use of SpanFromBoth:
Neat Examples (3)Create a random arrangement of spanning rows and columns:
Wolfram Research (2007), Grid, Wolfram Language function, https://reference.wolfram.com/language/ref/Grid.html (updated 2012). TextWolfram Research (2007), Grid, Wolfram Language function, https://reference.wolfram.com/language/ref/Grid.html (updated 2012).
CMSWolfram Language. 2007. "Grid." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/Grid.html.
APAWolfram Language. (2007). Grid. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Grid.html
BibTeX@misc{reference.wolfram_2025_grid, author="Wolfram Research", title="{Grid}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/Grid.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_grid, organization={Wolfram Research}, title={Grid}, year={2012}, url={https://reference.wolfram.com/language/ref/Grid.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4