TableView
TableView [{{expr11,expr12,…},{expr21,expr22,…},…}]
displays as a spreadsheet-like table view for editing and viewing exprij.
takes the contents of the table view to be the dynamically updated current value of x, with the value of x being reset as the table view is interactively edited.
TableView [table,type]
uses the specified type by default to represent newly edited or created entries in the table view.
TableView []
displays an empty table view.
Details and Options
- TableView produces an interface that works similarly to common spreadsheet interfaces. Columns may be resized. Selections of entire rows, columns or blocks may be cut and pasted. Strings and numbers are automatically differentiated upon editing. The view may be scrolled to accommodate large numbers of entries.
- The following are possible values of type:
-
Number numberString stringExpression expressionBoxes raw boxes
- When type is not specified, TableView defaults to {Number ,String }.
- The following options can be given:
-
Headers Automatic row and column labels
- whether to include scrollbars
Examples
open allclose allBasic Examples (2)
Numerical data in TableView :
Numbers and strings:
Scope (11)
Structure (5)
An empty TableView :
A regular array of data:
A ragged array of data:
Arrays with empty fields:
Empty rows and columns:
Types (6)
Numbers:
Strings:
Mixed data:
Expressions:
Images and graphics:
Boxes:
Options (20)
Alignment (1)
Center content:
AllowedDimensions (2)
Set the dimensions to be exactly 4 columns by 3 rows:
Automatic scrollbars appear if the allowed dimensions cannot be displayed all at once:
With unconstrained dimensions, the scroll position can be set arbitrarily high:
With constrained dimensions, the scroll position will not move past the constraints:
AppearanceElements (2)
Show collapsed headers and collapsed columns:
The "Frame" element always displays as a thin gray frame:
To use a customized frame, omit the "Frame" element and use Framed :
Background (7)
Draw the view with a pink background:
Pink and gray backgrounds for the columns at the first and second horizontal positions:
An equivalent syntax:
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:
Blending of colors:
Set the background for specific items:
Set the background for a subregion of the grid:
BaselinePosition (2)
Align the center of the grid with the baseline of surrounding text:
Align the bottom of the grid with the baseline:
HeaderSize (1)
Make the first column wider:
ImageSize (1)
Display views at various sizes:
Scrollbars (3)
ScrollPosition (1)
Specify the initial position of a view:
Properties & Relations (1)
Neat Examples (1)
Use Magnify to see an overview of a large number of cells:
See Also
Related Guides
History
Text
Wolfram Research (2020), TableView, Wolfram Language function, https://reference.wolfram.com/language/ref/TableView.html.
CMS
Wolfram Language. 2020. "TableView." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TableView.html.
APA
Wolfram Language. (2020). TableView. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TableView.html
BibTeX
@misc{reference.wolfram_2025_tableview, author="Wolfram Research", title="{TableView}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/TableView.html}", note=[Accessed: 26-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_tableview, organization={Wolfram Research}, title={TableView}, year={2020}, url={https://reference.wolfram.com/language/ref/TableView.html}, note=[Accessed: 26-April-2025 ]}