API Reference > OdDb Classes > OdDbTable Class > OdDbTable Methods > setDataFormat Method > OdDbTable::setDataFormat Method (OdInt32, OdInt32, OdString&)
OdDbTable::setDataFormat Method (OdInt32, OdInt32, OdString&)
Syntax
C++
void setDataFormat(OdInt32 row, OdInt32 col, const OdString& sFormat);
Parameters 
Description 
OdInt32 row 
[in] Row index of the cell.  
OdInt32 col 
[in] Column index of the cell.  
const OdString& sFormat 
[in] Data format. 

Sets the data format of the cell. 

 

Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than the table size. Method generates the eIsWriteProtected exception when content is not editable (!isContentEditable()).

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