DataColumn::Caption Property
.NET Framework (current version)
Gets or sets the caption for the column.
Assembly: System.Data (in System.Data.dll)
Property Value
Type: System::String^The caption of the column. If not set, returns the ColumnName value.
You can use the Caption property to display a descriptive or friendly name for a DataColumn.
The following example creates a new DataTable. It then adds three DataColumn objects to a DataColumnCollection and sets the Caption property for each DataColumn.
.NET Framework
Available since 1.1
Available since 1.1
Show: