EssGGetIsCellDrillable

Checks whether a cell is associated with a drill-through URL.

Syntax

ESS_FUNC_M EssGGetIsCellDrillable (hGrid, pData, pIsDrillable);
ParameterData TypeDescription

hGrid

ESSG_HGRID_T

Grid handle returned by EssGNewGrid()

pData

ESS_PDATA_T

Pointer to the ESSG_DATA_T structure of the cell

pIsDrillable

ESS_PBOOL_T

True, if the cell is associated with a drill-through URL; False otherwise

Return Value

Example

#define   ESSG_OP_GET_DRILLTHRU_URLS            41

ESSG_STS_T  sts = EssGInit(&InitStruct, &Handle);
sts = EssGNewGrid(Handle, &hGrid);
sts = EssGConnect(hGrid,Server,UserName,Password,Application,Database,ulOptions);
sts = EssGSetGridOption(hGrid, ESSG_OP_GET_DRILLTHRU_URLS ,(ESSG_PVOID_T)(ESSG_TRUE));
	
ppDataIn = BuildQuery(&rRangeDataIn);

sts = EssGBeginRetrieve(hGrid,ESSG_RET_RETRIEVE);
sts = EssGSendRows(hGrid, &rRangeDataIn, ppDataIn);
sts = EssGPerformOperation(hGrid, 0);

/*To retrieve the cell drillable property of a cell*/

EssGGetIsCellDrillable(hGrid, &(cells[ulRow][ulCol]), &bIsDrillable);
   if (bIsDrillable)
      printf("bIsDrillable: true");
   else
      printf("bIsDrillable: false");