DataColumn Properties
.NET Framework 4.5
The DataColumn type exposes the following members.
| Name | Description | |
|---|---|---|
|
AllowDBNull | Gets or sets a value that indicates whether null values are allowed in this column for rows that belong to the table. |
|
AutoIncrement | Gets or sets a value that indicates whether the column automatically increments the value of the column for new rows added to the table. |
|
AutoIncrementSeed | Gets or sets the starting value for a column that has its AutoIncrement property set to true. The default is 0. |
|
AutoIncrementStep | Gets or sets the increment used by a column with its AutoIncrement property set to true. |
|
Caption | Gets or sets the caption for the column. |
|
ColumnMapping | Gets or sets the MappingType of the column. |
|
ColumnName | Gets or sets the name of the column in the DataColumnCollection. |
|
Container | Gets the container for the component. (Inherited from MarshalByValueComponent.) |
|
DataType | Gets or sets the type of data stored in the column. |
|
DateTimeMode | Gets or sets the DateTimeMode for the column. |
|
DefaultValue | Gets or sets the default value for the column when you are creating new rows. |
|
DesignMode | Gets a value indicating whether the component is currently in design mode. (Inherited from MarshalByValueComponent.) |
|
Events | Gets the list of event handlers that are attached to this component. (Inherited from MarshalByValueComponent.) |
|
Expression | Gets or sets the expression used to filter rows, calculate the values in a column, or create an aggregate column. |
|
ExtendedProperties | Gets the collection of custom user information associated with a DataColumn. |
|
MaxLength | Gets or sets the maximum length of a text column. |
|
Namespace | Gets or sets the namespace of the DataColumn. |
|
Ordinal | Gets the (zero-based) position of the column in the DataColumnCollection collection. |
|
Prefix | Gets or sets an XML prefix that aliases the namespace of the DataTable. |
|
ReadOnly | Gets or sets a value that indicates whether the column allows for changes as soon as a row has been added to the table. |
|
Site | Gets or sets the site of the component. (Inherited from MarshalByValueComponent.) |
|
Table | Gets the DataTable to which the column belongs to. |
|
Unique | Gets or sets a value that indicates whether the values in each row of the column must be unique. |