ComponentOne True DBGrid Pro 8
FetchRowStyle Event

 

Object Reference> True DBGrid Events> FetchRowStyle Event

FetchRowStyle Event

The FetchRowStyle event is fired whenever the grid is about to display a row of data, but only if the FetchRowStyle property is True for the grid or one of its splits.

Syntax

TDBGrid_FetchRowStyle (ByVal Split As Integer, Bookmark As Variant, ByVal  RowStyle As TrueDBGrid80.StyleDisp)

TDBDropDown_FetchRowStyle (Bookmark As Variant, ByVal RowStyle As TrueDBGrid80.StyleDisp)

Arguments

Split is the zero-based index of the split for which formatting information is being requested. This argument is omitted for TDBDropDown controls.

Bookmark is a variant that uniquely identifies the row to be displayed.

RowStyle is a Style object used to convey font and color information to the grid.

Remarks

Use the FetchRowStyle event to control formatting on a per-row basis, as it is much more efficient than coding the FetchCellStyle event to apply the same formatting to all columns.

Note

A common application of row-based formatting is to present rows in alternating colors to enhance their readability. Although you could use the FetchRowStyle event to achieve this effect, the AlternatingRowStyle property is easier to use, as it requires no coding.

See Also

TDBGrid Control

TDBDropDown Control

 

 


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

Product Support Forum  |  Documentation Feedback