Constructors
-
Data
Column() Initializes a new instance of a DataColumn class as type string. -
Data
Column(String) Initializes a new instance of the DataColumn class, as type string, using the specified column name. -
Data
Column(String, Initializes a new instance of the DataColumn class using the specified column name and data type.Type) -
Data
Column(String, Initializes a new instance of the DataColumn class using the specified name, data type, and expression.Type, String) -
Data
Column(String, Initializes a new instance of the DataColumn class using the specified name, data type, expression, and value that determines whether the column is an attribute.Type, String, Mapping Type)
Methods
-
Check
Not protected internal This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Allow Null() -
Check
Unique() protected This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. -
On
Property protectedvirtual This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Changing(Property Changed Event Args) -
Raise
Property protected internal This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Changing(String) -
Set
Ordinal(Int32) Changes the ordinal or position of the DataColumn to the specified ordinal or position. -
To
String() virtual Gets the Expression of the column, if one exists.
Properties
-
Allow
DBNull Gets or sets a value that indicates whether null values are allowed in this column for rows that belong to the table. -
Auto
Increment Gets or sets a value that indicates whether the column automatically increments the value of the column for new rows added to the table. -
Auto
Increment Gets or sets the starting value for a column that has its AutoIncrement property set to true. The default is 0.Seed -
Auto
Increment Gets or sets the increment used by a column with its AutoIncrement property set to true.Step - Caption Gets or sets the caption for the column.
-
Column
Mapping virtual Gets or sets the MappingType of the column. -
Column
Name Gets or sets the name of the column in the DataColumnCollection. -
Data
Type Gets or sets the type of data stored in the column. -
Date
Time Gets or sets the DateTimeMode for the column.Mode -
Default
Value Gets or sets the default value for the column when you are creating new rows. - Expression Gets or sets the expression used to filter rows, calculate the values in a column, or create an aggregate column.
-
Extended
Properties Gets the collection of custom user information associated with a DataColumn. -
Max
Length 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.
-
Read
Only Gets or sets a value that indicates whether the column allows for changes as soon as a row has been added to the table. - 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.