API Reference > OdDb Classes > OdDbLinkedTableData Class > OdDbLinkedTableData Methods > updateDataLink Method > OdDbLinkedTableData::updateDataLink Method (OdInt32, OdInt32, OdDb::UpdateDirection, OdDb::UpdateOption)
OdDbLinkedTableData::updateDataLink Method (OdInt32, OdInt32, OdDb::UpdateDirection, OdDb::UpdateOption)
Syntax
C++
virtual void updateDataLink(OdInt32 nRow, OdInt32 nCol, OdDb::UpdateDirection nDir, OdDb::UpdateOption nOption);
Parameters 
Description 
OdInt32 nRow 
[in] Row index of the cell.  
OdInt32 nCol 
[in] Column index of the cell.  
OdDb::UpdateDirection nDir 
[in] Direction of update.  
OdDb::UpdateOption nOption 
[in] Update option. 

Updates the data link of a cell. 

 

Direction of update should take one of the following values: 

 

Name 
Value 
kUpdateDirectionSourceToData 
0x1 
kUpdateDirectionDataToSource 
0x2 

 

Update option should take one of the following values: 

 

Name 
Value 
kUpdateOptionNone 
kUpdateOptionSkipFormat 
0x20000 
kUpdateOptionUpdateRowHeight 
0x40000 
kUpdateOptionUpdateColumnWidth 
0x80000 
kUpdateOptionAllowSourceUpdate 
0x100000 
kUpdateOptionForceFullSourceUpdate 
0x200000 
kUpdateOptionOverwriteContentModifiedAfterUpdate 
0x400000 
kUpdateOptionOverwriteFormatModifiedAfterUpdate 
0x800000 
kUpdateOptionForPreview 
0x1000000 
kUpdateOptionIncludeXrefs 
0x2000000 
kUpdateOptionSkipFormatAfterFirstUpdate 
0x4000000 

 

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

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