ComponentOne True DBGrid Pro 8
FetchStyle Property

FetchStyle Property

Controls whether the FetchCellStyle event fires for a column.

Syntax

FetchStyle As FetchCellStyleConstants

Values

Possible values for the FetchCellStyleConstants are:

 

Design Time

Run Time

0 – None (default)

dbgFetchCellStyleNone

1 – Column

dbgFetchCellStyleColumn

2 – Column and AddNew

dbgFetchCellStyleAddNewColumn

Remarks

Read/Write at run time and design time.

If set to 0 - None (the default), no events will fire to retrieve cell styles.

If set to 1 - Column, events will be fired for rows not including the AddNewRow.

If set to 2 – Column and AddNew, events will fire for rows including the AddNewRow. The bookmark into the event will be null for the AddNew row.

Note

If you want to apply the same formatting to all cells within a row, then you should set the FetchRowStyle property instead of FetchStyle, and write code for the FetchRowStyle event instead of FetchCellStyle. This is much more efficient because events are fired on a per-row rather than on a per-cell basis.

See Also

Column Object

 

 


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

Product Support Forum  |  Documentation Feedback