How to get the current value of a cell taking into consideration that active cells that are currently edited by the user have a pending value that is not yet transferred to the grid.

Implement the following method:

CString GetCellValue(ROWCOL nRow, ROWCOL nCol)
{
    if (IsCurrentCell(nRow, nCol) && IsActiveCurrentCell())
    {
        CString s;
        CGXControl* pControl = GetControl(nRow, nCol);
        pControl->GetValue(s);
  }
    else
        return GetValueRowCol(nRow, nCol);
}