BOOL CBCGPGridCache::SetCachedRow | ( | int | nId, |
CBCGPGridRow * | pRow | ||
) |
Adds a row to the cache.
Call this function to add a row to the cache. If index is not in the range of available pages, the class automatically allocate a new cache page. When page count exceeds the m_nCachePageCount limit, the CBCGPGridCache class automatically frees one of the previously added pages.
nId | Zero-based index of the cached item |
pRow | A pointer to the item to add. |