ComponentOne True DBGrid Pro 8
ReOpen Method

 

ReOpen Method

The ReOpen method reconnects the grid to its data source.

Syntax

TDBGrid.ReOpen [bookmark]

Arguments

bookmark is an optional variant that specifies the row to position to immediately after the data source is reopened. If specified, it must be a valid bookmark.

Return Value

None

Remarks

The grid is repopulated and the current row is positioned to the row identified by the optional bookmark argument. If bookmark is not specified, then the current row reflects the current row of the data source.

In unbound mode, if the current row needs to be changed after the ReOpen operation, you can significantly reduce the number of UnboundReadData (or UnboundReadDataEx) events that fire by specifying the optional bookmark argument.

Note

If ReOpen is called while the grid is still connected to its data source, the grid implicitly performs a Close first:

TDBGrid1.Close False

The optional bookmark is honored as usual when the data source is reopened.

See Also

TDBGrid Control

 

 


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

Product Support Forum  |  Documentation Feedback