

| Type | Description | |||
| Index as Long | A Long expression that specifies the index of the item to be requested | |||
| Source as Object | The source object to be filled. | |||
| ItemHandle as Long | A Long expression that specifies the handle of the item in the source, that's associated with the requested index. |
The following VB sample, shows how ReadItem method should be implemented:
Private Sub IUnboundHandler_ReadItem(ByVal Index As Long, ByVal Source As Object, ByVal ItemHandle As Long)
With Source.Items
.CellValue(ItemHandle, 0) = Index + 1
End With
End Sub
The following VB/NET sample, shows how ReadItem method should be implemented:
Public Sub ReadItem(ByVal Index As Integer, ByVal Source As Object, ByVal ItemHandle As Integer) Implements EXGRIDLib.IUnboundHandler.ReadItem
With Source.Items
.CellValue(ItemHandle, 0) = Index + 1
End With
End Sub
The following C# sample, shows how ReadItem method should be implemented:
public void ReadItem(int Index, object Source, int ItemHandle)
{
(Source as EXGRIDLib.IGrid).Items.set_CellValue(ItemHandle, 0, Index + 1);
}
The following VFP sample , shows how ReadItem method should be implemented:
function IUnboundHandler_ReadItem(Index, Source, ItemHandle)
With Source.Items
.CellValue(ItemHandle, 0) = Index + 1
EndWith
endfunc