Objective Grid: Get current value of a cell

Article ID: 728
Last updated: 11 Jun, 2018
Article ID: 728
Last updated: 11 Jun, 2018
Revision: 3
Views: 2428
Posted: 15 Jun, 2001
by Meltreger B.
Updated: 11 Jun, 2018
by Meltreger B.

Problem


How can I 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?


Cause



Action


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);
return s;

}
else
return GetValueRowCol(nRow, nCol);
}


 

This article was:   Helpful | Not helpful
Report an issue
Article ID: 728
Last updated: 11 Jun, 2018
Revision: 3
Views: 2428
Posted: 15 Jun, 2001 by Meltreger B.
Updated: 11 Jun, 2018 by Meltreger B.

Others in this category