({{, (RefLink[GridDefaultElement, paclet:ref/GridDefaultElement])
is an option for the low-level function (RefLink[GridBox, paclet:ref/GridBox]) that specifies what to insert when a new element is created interactively in a (RefLink[GridBox, paclet:ref/GridBox]). }})

OpenersNotesSection(Spacer1)Details

The default setting for (RefLink[GridDefaultElement, paclet:ref/GridDefaultElement]) is "∖[Placeholder]" or "□".

When creating palettes, (RefLink[GridDefaultElement, paclet:ref/GridDefaultElement]) is typically set to (RefLink[ButtonBox, paclet:ref/ButtonBox])["□"].

The setting for (RefLink[GridDefaultElement, paclet:ref/GridDefaultElement]) is used to determine the contents of new columns or rows created with (Key1[ctrl, ,]) or (Key1[ctrl, enter]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

This creates a notebook with a grid set to fill new rows or columns with 0:

nb=NotebookPut[Notebook[{Cell[BoxData[GridBox[{{"1","2"},{"3","4"}},GridDefaultElement->"0"]],"Input"]}]];

Typing (Key1[ctrl, enter]) adds a new row, which is filled with 0s by default:

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Grid, paclet:ref/Grid])}})}})