Visual Basic: DataGrid Control

ClearFields Method

See Also   Example   Applies To

Restores the default grid layout.

Syntax

object**.ClearFields**

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

The ClearFields method restores the default grid layout (with two blank columns) so that subsequent ReBind operations will automatically derive new column bindings from the (possibly changed) data source. You can cancel the grid's automatic layout behavior by invoking the HoldFields method.