Posted 23 October 2018, 7:40 am EST
When creating a spread, I lock a column by default. When I check a cell in that column later (in the base class, by iterating over all cells) I use the following:
bool bCellLocked = this->Sheets->default[iSheet]->Cells->default[iRow, iCol]->Locked;
bool bColLocked = this->Sheets->default[iSheet]->Columns->default[iCol]->Locked;
bool bRowLocked = this->Sheets->default[iSheet]->Rows->default[iRow]->Locked;
It initially returns:
bCellLocked = false
bColLocked = true
bRowLocked = false
Some cells in that column may have been unlocked based upon different settings in the grid, like the status of a checkbox. The issue is that locking a whole column doesn’t affect the status of the Cells->default[iRow, iCol], so I don’t always get the true status of the cell.
I have tried
this->Sheets->default[iSheet]->Models->Style->GetCompositeInfo(iRow, iCol, -1, styleCellInfo)->Locked
but the compiler does not recognize the “Locked” property. The only options are LockBackColor, LockFont, and LockForeColor.
Thank you for your help.