Items object
The Items object contains a collection of items. Each item is identified by a handle HITEM. The HITEM is of long type. Each item contains a collection of cells. The number of cells is determined by the number of Column objects in the control. To access the Items collection use Items property of the control. Using the Items collection you can add, remove or change the control items. The Items collection can be organized as a hierarchy or as a tabular data. The Items collection supports the following properties and methods: 

NameDescription
AcceptSetParentVerifies whether the item can be child of another item.
AddItemAdds a new item, and returns a handle to the newly created item.
CellBackColorRetrieves or sets the cell's background color.
CellBoldRetrieves or sets a value that specifies whether the cell should appear in bold.
CellButtonAutoWidthRetrieves or sets a value indicating whether the cell's button fits the cell's caption.
CellCaptionGets the cell's display value.
CellCheckedRetrieves the cell's handle that is checked giving the radio group identifier.
CellDataSpecifies the cell's extra data.
CellEnabledReturns or sets a value that determines whether a cell can respond to user-generated events.
CellFontRetrieves or sets the cell's font.
CellForeColorRetrieves or sets the cell's foreground color.
CellFormatLevelSpecifies the arrangement of the fields inside the cell.
CellHAlignmentRetrieves or sets a value that indicates the alignment of the cell's caption.
CellHasButtonRetrieves or sets a value indicating whether the cell has associated a push button.
CellHasCheckBoxRetrieves or sets a value indicating whether the cell has associated a checkbox.
CellHasRadioButtonRetrieves or sets a value indicating whether the cell has associated a radio button.
CellHyperLinkSpecifies whether the cell's is highlighted when the cursor mouse is over the cell.
CellImageRetrieves or sets a value that indicates the index of icon in the cell.
CellImagesSpecifies an additional list of icons shown in the cell.
CellItalicRetrieves or sets a value that specifies whether the cell should appear in italic.
CellItemRetrieves the handle of item that is the owner of a specfic cell.
CellMergeRetrieves or sets a value that indicates the index of the cell that's merged to.
CellParentRetrieves the parent of an inner cell.
CellPictureRetrieves or sets the cell's picture.
CellPictureHeightRetrieves or sets a value that indicates the height of the cell's picture.
CellPictureWidthRetrieves or sets a value that indicates the width of the cell's picture.
CellRadioGroupRetrieves or sets a value indicating the radio group where the cell is contained.
CellSingleLineRetrieves or sets a value indicating whether the cell's caption is painted using one or more lines.
CellSortDataSpecifies the cell's sort data.
CellStateRetrieves or sets the cell's state. Has effect only for check and radio cells.
CellStrikeOutRetrieves or sets a value that specifies whether the cell should appear in strikeout.
CellToolTipRetrieves or sets a value that indicates the cell's too tip
CellUnderlineRetrieves or sets a value that specifies whether the cell should appear in underline.
CellVAlignmentRetrieves or sets a value that indicates how the cell's caption is vertically aligned.
CellValueSpecifies the cell's value.
CellValueFormatSpecifies how the cell's caption is displayed.
CellWidthRetrieves or sets a value that indicates the width of the inner cell.
ChildCountRetrieves the number of children items.
ClearCellBackColorClears the cell's background color.
ClearCellForeColorClears the cell's foreground color.
ClearCellHAlignmentClears the cell's alignment.
ClearItemBackColorClears the item's background color.
ClearItemForeColorClears the item's foreground color.
ComputeValueComputes the value of a specified formula.
DefaultItemRetrieves or sets a value that indicates the handle of the item used by Items properties in VFP.
EnableItemReturns or sets a value that determines whether a item can respond to user-generated events.
EnsureVisibleItemEnsures the given item is in the visible client area.
ExpandItemExpands, or collapses, the child items of the specified item.
FindItemFinds an item, looking for Value in ColIndex colum. The searching starts at StartIndex item.
FindItemDataFinds the item giving its data.
FindPathFinds the item, given its path. The control searches the path on the SearchColumnIndex column.
FirstVisibleItemRetrieves the handle of the first visible item in the control.
FocusItemRetrieves the handle of item that has the focus.
FormatCellSpecifies the custom format to display the cell's content.
FullPathReturns the fully qualified path of the referenced item in the ExGrid control. The value is taken from the column SearchColumnIndex.
GroupItemIndicates a group item if positive, and the value specifies the index of the column that has been grouped.
InnerCellRetrieves the inner cell.
InsertControlItemInserts a new item of ActiveX type, and returns a handle to the newly created item.
InsertItemInserts a new item, and returns a handle to the newly created item.
InsertObjectItemInserts a new item that hosts the giving object, and returns a handle to the newly created item.
IsItemLockedReturns a value that indicates whether the item is locked or unlocked.
IsItemVisibleChecks if the specific item is in the visible client area.
ItemAllowSizingRetrieves or sets a value that indicates whether a user can resize the item at run-time.
ItemAppearanceSpecifies the item's appearance when the item hosts an ActiveX control.
ItemBackColorRetrieves or sets a background color for a specific item.
ItemBoldRetrieves or sets a value that indicates whether the item should appear in bold.
ItemByIndexRetrieves the handle of the item given its index in Items collection..
ItemCellRetrieves the cell's handle given the item and the column.
ItemChildRetrieves the child of a specified item.
ItemControlIDRetrieves the item's control identifier that was used by InsertControlItem.
ItemCountRetrieves the number of items.
ItemDataRetrieves or sets the extra data for a specific item.
ItemDividerSpecifies whether the item acts like a divider item. The value indicates the index of column used to define the divider's title.
ItemDividerLineDefines the type of line in the divider item.
ItemDividerLineAlignmentSpecifies the alignment of the line in the divider item.
ItemFilteredChecks whether the item is included in the control's filter.
ItemFontRetrieves or sets the item's font.
ItemForeColorRetrieves or sets a foreground color for a specific item.
ItemHasChildrenAdds an expand button to left side of the item even if the item has no child items.
ItemHeightRetrieves or sets the item's height.
ItemItalicRetrieves or sets a value that indicates whether the item should appear in italic.
ItemMaxHeightRetrieves or sets a value that indicates the maximum height when the item's height is variable.
ItemMinHeightRetrieves or sets a value that indicates the minimum height when the item's height is sizing.
ItemObjectRetrieves the ActiveX object associated, if the item was created using the InsertControlItem method.
ItemParentReturns the handle of the item's parent item.
ItemPositionRetrieves or sets a value that indicates the item's position in the children list.
ItemStrikeOutRetrieves or sets a value that indicates whether the item should appear in strikeout.
ItemToIndexRetrieves the index of item in the Items collection given its handle.
ItemUnderlineRetrieves or sets a value that indicates whether the item should appear in underline.
ItemWidthRetrieves or sets a value that indicates the item's width while it contains an ActiveX control.
ItemWindowHostRetrieves the window's handle that hosts an ActiveX control when the item was created using the InsertControlItem method.
ItemWindowHostCreateStyleRetrieves or sets a value that indicates a combination of window styles used to create the ActiveX window host.
LastVisibleItemRetrieves the handle of the last visible item.
LockedItemRetrieves the handle of the locked item.
LockedItemCountSpecifies the number of items fixed on the top or bottom side of the control.
MatchItemCountRetrieves the number of items that match the filter.
MergeCellsMerges a list of cells.
NextSiblingItemRetrieves the next sibling of the item in the parent's child list.
NextVisibleItemRetrieves the handle of next visible item.
PathSeparatorReturns or sets the delimiter character used for the path returned by the FullPath property.
PrevSiblingItemRetrieves the previous sibling of the item in the parent's child list.
PrevVisibleItemRetrieves the handle of previous visible item.
RemoveAllItemsRemoves all items from the control.
RemoveItemRemoves a specific item.
RemoveSelectionRemoves the selected items (including the descendents).
RootCountRetrieves the number of root objects in the Items collection.
RootItemRetrieves the handle of the root item giving its index in the root items collection.
SelectableItemSpecifies whether the user can select the item.
SelectAllSelects all items.
SelectCountRetrieves the handle of selected item giving its index in selected items collection.
SelectedItemRetrieves the selected item's handle given its index in selected items collection.
SelectionSelects items by index.
SelectItemSelects or unselects a specific item.
SelectPosSelects items by position.
SetParentChanges the parent of the given item.
SortableItemSpecifies whether the item is sortable.
SortChildrenSorts the child items of the given parent item in the control. SortChildren will not recurse through the grid, only the immediate children of Item will be sorted.
SplitCellSplits a cell, and returns the inner created cell.
UnmergeCellsUnmerges a list of cells.
UnselectAllUnselects all items.
UnsplitCellUnsplits a cell.
VisibleCountRetrieves the number of visible items.
VisibleItemCountRetrieves the number of visible items.