Enumerations

2 real typelib enums (11 values) and 20 documented constant groups used across the LiteGrid Turbo ActiveX/COM grid control API

GridLines

Used with the GridLines property.

ValueNameDescription
0NoneNo grid lines
1HorizontalHorizontal lines only
2VerticalVertical lines only
3BothBoth horizontal and vertical

Theme

Used with the Theme property.

ValueNameDescription
0LightLight theme
1DarkDark theme
2Excel-ClassicClassic Excel appearance
3High-ContrastHigh-contrast accessibility theme

SortOrder

Used with the Sort method.

ValueNameDescription
0AscendingSort A to Z / low to high
1DescendingSort Z to A / high to low

SortMode

Used with the SortEx method.

ValueNameDescription
0AscendingAscending (case-sensitive)
1DescendingDescending (case-sensitive)
2AscendingNoCaseAscending (case-insensitive)
3DescendingNoCaseDescending (case-insensitive)
4NaturalNatural sort (File1, File2, File10)

FilterMode

Text filter modes for SetColumnFilter.

ValueNameDescription
0ContainsText contains pattern
1EqualsText equals pattern exactly
2StartsWithText starts with pattern
3EndsWithText ends with pattern
4RegexRegular expression match

NumericFilterMode

Numeric filter modes for SetColumnNumericFilter.

ValueNameDescription
5GreaterThanValue greater than threshold
6LessThanValue less than threshold
7GreaterOrEqualValue greater than or equal to threshold
8LessOrEqualValue less than or equal to threshold
10NotEqualValue not equal to threshold

ColumnType

Used with SetColumnType / GetColumnType.

ValueNameDescription
0AutoAutomatically detected
1StringText data
2IntegerWhole numbers
3DoubleFloating-point numbers
4DateDate/time values
5BooleanTrue/False values
6CheckboxRendered as checkbox
7ProgressRendered as progress bar
8CurrencyFormatted as currency

ColumnAutoSize

Used with SetColumnAutoSize.

ValueNameDescription
0NoneNo auto-sizing
1ContentFit to cell content
2HeaderFit to header text
3BothFit to header and content
4FillFill remaining grid width

IconLayout

Used with SetColumnIconLayout.

ValueNameDescription
0NoneNo icon display
1IconOnlyShow icon only, no text
2IconLeftIcon to the left of text
3IconRightIcon to the right of text

LiteGridBuiltinIcon Real Typelib Enum

This is one of the two real typelib enums in LiteGrid Turbo — the other is LiteGridMatchEntry. Because it is a genuine VBA-referenceable enum, registered-mode code can use its named constants directly (lgIconCheck, etc.) once a reference to the LiteGrid Turbo type library exists; reg-free/late-bound code must use the numeric values below, exactly as for every constant group on this page. Every table on this page other than those two documents an informal constant group — a documented value vocabulary that is not a typelib enum, so VBA can never reference those names, in any mode.

Theme-aware, DPI-aware vector icons drawn without any external image file. Used with SetCellBuiltinIcon, SetColumnBuiltinIcon, SetColumnBuiltinIconMap, AddBuiltinIconThreshold, and SetColumnBuiltinIconDefault.

ValueConstantGlyph
0lgIconCircleFilled circle
1lgIconCheckCheckmark
2lgIconCrossX / cross
3lgIconWarningWarning triangle
4lgIconArrowUpUp arrow
5lgIconArrowDownDown arrow
6lgIconStarStar
7lgIconDiamondDiamond

LiteGridMatchEntry Real Typelib Enum

This is one of the two real typelib enums in LiteGrid Turbo — the other is LiteGridBuiltinIcon. Registered-mode code with a reference to the LiteGrid Turbo type library can use the named constants below directly; reg-free and late-bound code must use the numeric values, exactly as for every informal constant group on this page.

Type-ahead search behaviour when the grid has focus. Used with the MatchEntry property. Type-ahead is separate from the find panel: keystrokes search the focused column and move the focus row. Default lgMatchEntryComplete (2), which is the behaviour of every release before the property existed. Changing the mode discards any prefix already typed, and a value outside 0–2 is rejected.

ValueConstantBehaviour
0lgMatchEntryOffOff — keystrokes never move the focus row
1lgMatchEntryFirstLetterFirstLetter — only the last key counts, so repeating it cycles through matches
2lgMatchEntryCompleteComplete — keystrokes accumulate into a prefix that resets after a short idle (default)

SparklineType

Used with SetColumnSparkline.

ValueNameDescription
0NoneNo sparkline
1LineLine chart
2BarBar chart
3WinLossWin/Loss chart

FormatRuleType

Used with AddFormatRule for conditional formatting.

ValueNameDescription
0GreaterThanValue greater than threshold
1LessThanValue less than threshold
2EqualValue equals threshold
3ContainsText contains threshold
4BetweenValue between two thresholds
5Top10PercentTop 10% of values
6Bottom10PercentBottom 10% of values
7DuplicateDuplicate values
8UniqueUnique values

ValidationRuleType

Used with AddValidationRule for cell editing validation.

ValueNameDescription
0RequiredCell cannot be empty
1MinLengthMinimum text length
2MaxLengthMaximum text length
3RegexMust match regular expression
4NumericRangeValue within numeric range
5CustomListValue must be in allowed list

AggregateMode

Used with SetColumnAggregate for footer aggregation.

ValueNameDescription
0NoneNo aggregation
1SumSum of values
2AverageAverage of values
3CountCount of non-empty cells
4MinMinimum value
5MaxMaximum value

SelectionMode

Used with the SelectionMode property. Controls how selection highlighting and keyboard navigation behave.

ValueNameDescription
0RowClick selects entire row. Up/Down arrow navigation. Shift+Click extends row range. Focus indicator: left accent bar.
1CellClick selects single cell. All 4 arrow keys navigate cell-by-cell. Shift+Click/Arrow creates rectangular block selection. Tab moves between cells. Focus indicator: 2px cell border.
2ColumnClick selects entire column. Left/Right arrow navigation. Shift+Click extends column range. Ctrl+Click toggles columns. Focus indicator: top accent line.

RowDensity

Used with the RowDensity property.

ValueNameDescription
0CompactCompact row spacing
1NormalNormal row spacing (default)
2ComfortableComfortable row spacing

TextVAlign

Used with the TextVAlign property for vertical text alignment.

ValueNameDescription
0TopAlign text to top
1CenterCenter text vertically
2BottomAlign text to bottom

CellFontStyle

Used with SetCellFontStyle.

ValueNameDescription
0NormalNormal font weight and style
1BoldBold text
2ItalicItalic text
3BoldItalicBold and italic text

RendererType

Used with SetColumnRenderer for custom cell rendering.

ValueNameDescription
0DefaultStandard text rendering
1CheckboxCheckbox control
2ProgressBarProgress bar visualization
3SparklineIn-cell sparkline chart
4ButtonClickable button
5StarStar rating
6PillRounded status badge; map values to statuses with SetColumnPillMap

DataMode

Used with the DataMode property.

ValueNameDescription
0EmbeddedData stored in the grid (default)
1VirtualData supplied via callback on demand

BenchmarkId

Used with RunBenchmark for performance testing.

ValueNameDescription
0LoadData loading benchmark
1SortSorting benchmark
2PaintRendering/painting benchmark
3MemoryMemory usage benchmark
4AllRun all benchmarks