Export (0) Print
Expand All

DataColumn Properties

The properties of the DataColumn class are listed here. For a complete list of DataColumn class members, see the DataColumn Members topic.

Public Properties

public propertyAllowDBNull

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether null values are allowed in this column for rows belonging to the table.
public propertyAutoIncrement

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the column automatically increments the value of the column for new rows added to the table.
public propertyAutoIncrementSeed

Supported by the .NET Compact Framework.

Gets or sets the starting value for a column that has its AutoIncrement property set to true.
public propertyAutoIncrementStep

Supported by the .NET Compact Framework.

Gets or sets the increment used by a column with its AutoIncrement property set to true.
public propertyCaption

Supported by the .NET Compact Framework.

Gets or sets the caption for the column.
public propertyColumnMapping

Supported by the .NET Compact Framework.

Gets or sets the MappingType of the column.
public propertyColumnName

Supported by the .NET Compact Framework.

Gets or sets the name of the column in the DataColumnCollection.
public propertyContainer (inherited from MarshalByValueComponent) Gets the container for the component.
public propertyDataType

Supported by the .NET Compact Framework.

Gets or sets the type of data stored in the column.
public propertyDefaultValue

Supported by the .NET Compact Framework.

Gets or sets the default value for the column when creating new rows.
public propertyDesignMode (inherited from MarshalByValueComponent) Gets a value indicating whether the component is currently in design mode.
public propertyExpression

Supported by the .NET Compact Framework.

Gets or sets the expression used to filter rows, calculate the values in a column, or create an aggregate column.
public propertyExtendedProperties

Supported by the .NET Compact Framework.

Gets the collection of custom user information associated with a DataColumn.
public propertyMaxLength

Supported by the .NET Compact Framework.

Gets or sets the maximum length of a text column.
public propertyNamespace

Supported by the .NET Compact Framework.

Gets or sets the namespace of the DataColumn.
public propertyOrdinal

Supported by the .NET Compact Framework.

Gets the position of the column in the DataColumnCollection collection.
public propertyPrefix

Supported by the .NET Compact Framework.

Gets or sets an XML prefix that aliases the namespace of the DataTable.
public propertyReadOnly

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the column allows changes once a row has been added to the table.
public propertySite (inherited from MarshalByValueComponent) Gets or sets the site of the component.
public propertyTable

Supported by the .NET Compact Framework.

Gets the DataTable to which the column belongs to.
public propertyUnique

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether the values in each row of the column must be unique.

Protected Properties

protected propertyEvents (inherited from MarshalByValueComponent) Gets the list of event handlers that are attached to this component.

See Also

DataColumn Class | System.Data Namespace

Show:
© 2014 Microsoft