ComponentOne VSFlexGrid 8.0
OwnerDraw Property

Returns or sets whether and when the control will fire the DrawCell event.

Syntax

[form!]VSFlexGrid.OwnerDraw[ = OwnerDrawSettings ]

Remarks

The OwnerDraw property allows the application to add custom graphics or text to cells. It determines whether the control should fire the DrawCell event to allow the application to perform custom drawing.

The settings for the OwnerDraw property are described below:

 

Constant

Value

Description

FlexODNone

0

The control performs all drawing itself. The DrawCell event does not get fired at all. (This is the default setting.)

FlexODOver

1

The control draws the cell, then fires the DrawCell event so the application can add text or graphics over the default cell contents.

FlexODContent

2

The control draws the cell background, Including any pictures, but no text. It fires the DrawCell event so the application can draw the text.

FlexODComplete

3

The control draws nothing at all in the cell. It fires the DrawCell event and the application is responsible for drawing the entire cell.

FlexODOverFixed

4

Similar to flexODOver, except only fixed cells are owner-drawn.

FlexODContentFixed

5

Similar to flexODContent, except only fixed cells are owner-drawn.

FlexODCompleteFixed

6

Similar to flexODComplete, except only fixed cells are owner-drawn.

 

For more details, see the DrawCell event.

Data Type

OwnerDrawSettings (Enumeration)

Default Value

flexODNone (0)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback