Developer

HideWhenEmpty

Specify whether column will shown actual cell value (or EmptyCaption) when cell is considered as "empty".

property HideWhenEmpty: Boolean read GetHideWhenEmpty write SetHideWhenEmpty default False;
Cell is considered empty when IsEmpty method of TNxColumn descendants returns True. Some column types include EmptyValue property which may be set to different value than initial one.

Example:


NxNumberColumn61.EmptyValue := 10;
In example above every cell with AsFloat is considered as "empty" and therefore if HideWhenEmpty is True EmptyCaption will be displayed instead of actual content.

TNxCell class also include Empty Boolean property. By setting this property to True IsEmpty method of column will be ignored and cell will be drawn in empty state.

Example:


NextGrid61.Cell[2, 3].Empty := True;

See also