Usually this class object is instantiated automatically during the construction phase of CAknGrid object.If programmer wants to provide their own model they must instantiate grid model class object of their own and give it to the CAknGrid object using the SetModel function before calling the ConstructL/ConstructFromResourceL function of CAknGrid.
ETrue if the data index given is a data cell within the grid otherwise returns EFalse.
IMPORT_C TInt CAknGridM::IndexOfFirstDataItem
(
)
const
Gets the index of the first data item in the model.
Returns:
Index of the first data item if data exists in model. Returns -1 if no data exists.
IMPORT_C TInt CAknGridM::IndexOfLastDataItem
(
)
const
Gets the index of the last data item in the model.
Returns:
Index of the last data item if data exists in model. Returns -1 if no data exists.
virtual IMPORT_C TPtrC CAknGridM::ItemText
(
TInt
aItemIndex
)
const [virtual]
Gets the text of given index.
No check is made that the item index given is a valid grid index. A check should be made using IndexContainsData before the function is called. Empty cells at the start should be taken in account of the index given.
Parameters:
aItemIndex
Index of the grid.
Returns:
a Pointer descriptor to the associated item text for a cell.