Type | Description | |||
Item as HITEM | A long expression that indicates the handle of the item | |||
Boolean | A boolean expression that indicates whether the item is filtered. |
The following VB sample enumerates all items that are not included in the list when a filter is applied:
Dim i As Long With Grid1.Items For i = 0 To .ItemCount - 1 Dim h As EXGRIDLibCtl.HITEM h = .ItemByIndex(i) If (Not .ItemFiltered(h)) Then Debug.Print .CellValue(h, 0) End If Next End With
The following C++ sample enumerates all items that are not included in the list when a filter is applied:
#include "Items.h" CItems items = m_grid.GetItems(); for ( long i = 0; i < items.GetItemCount(); i++ ) { long hItem = items.GetItemByIndex( i ); if ( !items.GetItemFiltered( hItem ) ) { COleVariant vtItem( hItem ), vtColumn( long(0) ); CString strFormat; strFormat.Format( "'%s' is not included\r\n", V2S( &items.GetCellValue( vtItem, vtColumn ) ) ); OutputDebugString( strFormat ); } }
The following VB.NET sample enumerates all items that are not included in the list when a filter is applied:
Private Sub AxGrid1_ClickEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxGrid1.ClickEvent Dim i As Long With AxGrid1.Items For i = 0 To .ItemCount - 1 Dim h As Integer = .ItemByIndex(i) If (Not .ItemFiltered(h)) Then Dim cellValue As Object = .CellValue(h, 0) Dim strValue As String = "" If Not (cellValue Is Nothing) Then strValue = cellValue.ToString() End If Debug.WriteLine(strValue) End If Next End With End Sub
The following C# sample enumerates all items that are not included in the list when a filter is applied:
EXGRIDLib.Items items = axGrid1.Items; for (int i = 0; i < items.ItemCount; i++) if (!items.get_ItemFiltered(items[i])) { object cellValue = axGrid1.Items.get_CellValue(i, 0); string strValue = cellValue != null ? cellValue.ToString() : ""; System.Diagnostics.Debug.WriteLine(strValue); }
The following VFP sample enumerates all items that are not included in the list when a filter is applied:
with thisform.Grid1.Items local i For i = 0 To .ItemCount - 1 local h h = .ItemByIndex(i) If (!.ItemFiltered(h)) Then wait window nowait .CellValue(h, 0) EndIf Next endwith