AfterDataRefresh Event

Fired after reading data from the record source.

Syntax

Private Sub VSFlexGrid_AfterDataRefresh()

Remarks

The AfterDataRefresh event is useful when the control is bound to a recordset and you to perform certain operations on the data whenever it is refreshed. For example, you might want to display subtotals or add special formatting to certain columns or cells.

When the source recordset changes, all existing columns are destroyed and recreated from scratch. In this process, most column properties are reset to their default values. Thus, if you set up your columns using the ColEditMask, ColFormat, ColComboList, ColImageList, and so on, you should do it in response to the AfterDataRefresh event.

The AfterDataRefresh event fires when a new recordset is assigned to the controls DataSource property, or when the current source recordset is modified (for example, records are added or deleted). This event only fires when the DataMode property is set to a non-zero value.

See Also

VSFlexGrid Control