ComponentOne List 8.0 for ActiveX
FetchRowStyle Event (TDBCombo)

 

TDBCombo Reference> TDBCombo Events> FetchRowStyle Event (TDBCombo)

FetchRowStyle Event (TDBCombo)

Syntax

object_FetchRowStyle (ByVal Split As Integer, Bookmark As Variant, ByVal  RowStyle As TrueDBList80.StyleDisp)

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

Arguments

Split is the zero-based index of the split for which formatting information is being requested.

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 control.

Remarks

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

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.

Event applies to TDBList and TDBCombo controls.

See Also

TDBList and TDBCombo Controls

 

 


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

Product Support Forum  |  Documentation Feedback