API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > OdDbTable::setCellState Method
OdDbTable::setCellState Method
Syntax
C++
void setCellState(OdInt32 row, OdInt32 col, OdDb::CellState nLock);
Parameters 
Description 
OdInt32 row 
[in] Row index of the cell.  
OdInt32 col 
[in] Column index of the cell.  
OdDb::CellState nLock 
[in] Cell state. 

Sets the cell state. 

 

Cell state should take one of the following values: 

 

Name 
Value 
kCellStateNone 
0x00 
kCellStateContentLocked 
0x01 
kCellStateContentReadOnly 
0x02 
kCellStateLinked 
0x04 
kCellStateContentModifiedAfterUpdate 
0x08 
kCellStateFormatLocked 
0x10 
kCellStateFormatReadOnly 
0x20 
kCellStateFormatModifiedAfterUpdate 
0x40 
kAllCellStates 
(kCellStateContentLocked | kCellStateContentReadOnly | 
 
kCellStateLinked | kCellStateContentModifiedAfterUpdate | 
 
kCellStateFormatLocked | kCellStateFormatReadOnly | 
 
kCellStateFormatModifiedAfterUpdate) 

 

Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than table size.

Copyright © 2002–2021. Open Design Alliance. All rights reserved.