Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DefaultValue Property (DataGrid Control)
Collapse the table of content
Expand the table of content

Visual Basic: DataGrid Control

Visual Studio 6.0

DefaultValue Property (DataGrid Control)

See Also   Example   Applies To

Sets the default value for new column data.

Syntax

object.DefaultValue [= value]

The DefaultValue property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A Variant expression containing the default value for the specified column.

Remarks

The DataGrid control does not use this property itself, but provides it as a placeholder for you to associate default values with columns in a DataGrid control. This property can be used as a tag for a column. Arbitrary values can be stored and retrieved later.

Show:
© 2015 Microsoft