EssGSetGridOption

Sets individual grid options.

Syntax

ESSG_FUNC_M EssGSetGridOption (hGrid, sOption, pOption);
ParameterData TypeDescription

hGrid

ESSG_HGRID_T

Handle passed back from EssGNewGrid().

Description

sOption

ESSG_SHORT_T

Value indicating what option is being set. For a table of valid values, see Notes.

pOption

ESSG_PVOID_T

Value of option being set cast to an ESSG_PVOID_T.

Notes

Return Value

If successful, returns ESSG_STS_NOERR.

Example

ESSG_VOID_T ESSG_SetGridOption (ESSG_HGRID_T hGrid)

{
  ESSG_STS_T     sts = ESS_STS_NOERR;
  ESSG_SHORT_T         sOption;
  ESSG_SHORT_T         tmpShort;
  ESSG_PVOID_T         pOption;
   
  /* connect the grid to a database on the server */
  sts = EssGConnect(hGrid, "Rainbow", "Admin", "Password", "Demo", "Basic",
                   ESSG_CONNECT_DEFAULT);

  tmpShort = 2;
  sOption = ESSG_OP_DRILLLEVEL;
  pOption = (ESSG_PVOID_T)tmpShort;

  /* set grid option */
  if(!sts)
     sts = EssGSetGridOption(hGrid, sOption, pOption);
   
  if(!sts)
     EssGDisconnect(hGrid, 0);
}

See Also