ComponentOne VSFlexGrid 8.0
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, etc 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 (e.g. records are added or deleted). This event only fires when the DataMode property is set to a non-zero value.

 

 


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

Product Support Forum  |  Documentation Feedback