
###########################
A3DPDFDataTableSetInitIndex
###########################

.. c:function:: A3DStatus A3DPDFDataTableSetInitIndex(A3DPDFDataTable *pDataTable, A3DInt32 iInitIndex)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFDataTableSetInitIndex(:c:type:`~A3DPDFDataTable`\ * **pDataTable**\ , :c:type:`~A3DInt32` **iInitIndex**\ )
   
   Function to set the property iInitIndex on DataTable object. 
   
   By default, a -1 value is defined. If it is defined here, the table row at index iInitIndex is 'selected' at init time (when the document is opened), or when the table is reset. A table is typically reset when a bound widget is unselected. A widget bound to this table have to be defined with a NULL source and :c:enumerator:`~kA3DPDFDataSelect` behaviour to be automatically selected at init time (see :c:func:`~A3DPDFWidgetSetTargetBehaviour`\ ).
   
   **Parameters**
   
   
      **pDataTable**\ : The DataTable object. 
   
      **iInitIndex**\ : The index to set.
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




