Changing color properties for grid lines, background and others

Use the CGXProperties::SetColor method

   void SetColor(int nIndex, COLORREF rgbColor);

nIndex can be one of the following constants:

  • GX_COLOR_GRIDLINES: grid lines.

  • GX_COLOR_FIXEDLINES: separator line between frozen columns/rows and not frozen columns/rows.

  • GX_COLOR_TRACKINGLINE: outline the line for the row/column being sized.

  • GX_COLOR_DRAGGINGLINE: outline the line for the destination row/column being dragged.

  • GX_COLOR_BACKGROUND: background color for the bottom and for the right of the grid area.