The
Items object contains a collection of items. Each item is identified by an
index. 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 object supports
the following properties and methods:
| | Name | Description | |
| | Add | Adds a new item, and returns the index of the newly created item. | |
| | Caption | Retrieves or sets the text displayed by a specific cell. | |
| | CaptionFormat | Specifies how the cell's caption is displayed. | |
| | CellBackColor | Retrieves or sets the cell's background color. | |
| | CellBold | Retrieves or sets a value that indicates whether the cell's caption should appear in bold. | |
| | CellChecked | Retrieves the cell's index that is checked on a specific radio group. | |
| | CellData | Retrieves or sets a value that indicates the extra data for a specific cell. | |
| | CellEnabled | Returns or sets a value that determines whether a cell can respond to user-generated events. | |
| | CellFont | Retrieves or sets the cell's font. | |
| | CellForeColor | Retrieves or sets the cell's foreground color. | |
| | CellHAlignment | Retrieves or sets a value that indicates the alignment of the cell's caption. | |
| | CellHasButton | Retrieves or sets a value indicating whether the cell has associated a push button. | |
| | CellHasCheckBox | Retrieves or sets a value indicating whether the cell has associated a checkbox. | |
| | CellHasRadioButton | Retrieves or sets a value indicating whether the cell has associated a radio button. | |
| | CellHyperLink | Specifies whether the cell's is highlighted when the cursor mouse is over the cell. | |
| | CellImage | Retrieves or sets a value that indicates the index of the cell's image into Images collection. | |
| | CellImages | Specifies an additional list of icons shown in the cell. | |
| | CellItalic | Retrieves or sets a value that indicates whether the cell's caption should appear in italic. | |
| | CellMerge | Retrieves or sets a value that indicates the index of the cell that's merged to. | |
| | CellPicture | Retrieves or sets a value that indicates the Picture object displayed by the cell. | |
| | CellPictureHeight | Retrieves or sets a value that indicates the height of the cell's picture. | |
| | CellPictureWidth | Retrieves or sets a value that indicates the width of the cell's picture. | |
| | CellRadioGroup | Retrieves or sets a value indicating the radio group where the cell is contained. | |
| | CellSingleLine | Retrieves or sets a value indicating whether the cell's caption is painted using one or more lines. | |
| | CellState | Retrieves or sets the cell's state. Has effect only for cells of check or radio types. | |
| | CellStrikeOut | Retrieves or sets a value that indicates whether the cell's caption should appear in strikeout. | |
| | CellToolTip | Retrieves or sets a value that indicates the cell's tooltip. | |
| | CellUnderline | Retrieves or sets a value that indicates whether the cell's caption is underlined. | |
| | CellVAlignment | Retrieves or sets a value that indicates how the cell's caption is vertically aligned. | |
| | ClearCellBackColor | Clears the cell's background color. | |
| | ClearCellForeColor | Clears the cell's foreground color. | |
| | ClearCellHAlignment | Clears the cell's alignment. | |
| | ClearItemBackColor | Clears the item's background color. | |
| | ClearItemForeColor | Clears the item's foreground color. | |
| | Count | Retrieves the number of items. | |
| | Edit | Edits a cell. | |
| | EnableItem | Returns or sets a value that determines whether a item can respond to user-generated events. | |
| | EnsureVisibleColumn | Ensures that a column fits the control client area. | |
| | EnsureVisibleItem | Ensures the given item is in the visible client area. | |
| | FindItem | Finds an item, looking for Caption in ColIndex colum. The searching starts at StartIndex item. | |
| | FindItemData | Finds the item giving its data. | |
| | FirstVisibleItem | Retrieves the index of the first visible item into control. | |
| | FocusItem | Retrieves the index of the item that has the focus. | |
| | FormatCell | Specifies the custom format to display the cell's content. | |
| | IsItemVisible | Checks if the specific item is in the visible client area. | |
| | ItemAllowSizing | Retrieves or sets a value that indicates whether a user can resize the item at run-time. | |
| | ItemBackColor | Retrieves or sets a background color for a specific item. | |
| | ItemBold | Retrieves or sets a value that indicates whether the item should appear in bold. | |
| | ItemBreak | Retrieves or sets a value that indicates whether the item is painted as a break line. | |
| | ItemData | Retrieves or sets a value that indicates the extra data for a specific item. | |
| | ItemFont | Retrieves or sets the item's font. | |
| | ItemForeColor | Retrieves or sets a foreground color for a specific item. | |
| | ItemHeight | Retrieves or sets the item's height. | |
| | ItemItalic | Retrieves or sets a value that indicates whether the item should appear in italic. | |
| | ItemMaxHeight | Retrieves or sets a value that indicates the maximum height when the item's height is variable. | |
| | ItemMinHeight | Retrieves or sets a value that indicates the minimum height when the item's height is sizing. | |
| | ItemPosition | Retrieves or sets a value that indicates the item's position. | |
| | ItemStrikeOut | Retrieves or sets a value that indicates whether the item should appear in strikeout. | |
| | ItemToVirtual | Gets the index of the virtual item giving the index of the item in the list. | |
| | ItemUnderline | Retrieves or sets a value that indicates whether the item is underlined. | |
| | LastVisibleItem | Retrieves the index of the last visible item. | |
| | MatchItemCount | Retrieves the number of items that match the filter. | |
| | NextVisibleItem | Retrieves the index of next visible item. | |
| | PrevVisibleItem | Retrieves the index of previous visible item. | |
| | Remove | Removes a specific item. | |
| | RemoveAll | Removes all items from the control. | |
| | RemoveSelection | Removes the selected items (including the descendents). | |
| | SelectableItem | Specifies whether the user can select the item. | |
| | SelectAll | Selects all items. | |
| | SelectCount | Retrieves the count of selected items. | |
| | SelectedItem | Retrieves the selected item's index given its index into selected items collection. | |
| | SelectItem | Selects or unselects a specific item. | |
| | Sort | Sorts a column. | |
| | SortableItem | Specifies whether the item is sortable. | |
| | UnselectAll | Unselects all items. | |
| | VirtualToItem | Gets the index of the item in the list giving the index of the virtual item. | |
| | VisibleCount | Retrieves the number of visible items. | |
| | VisibleItemCount | Retrieves the number of visible items. | |