BoundColumn::DataField Property
.NET Framework (current version)
Gets or sets the field name from the data source to bind to the BoundColumn.
Assembly: System.Web (in System.Web.dll)
public: property String^ DataField { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^The name of the field to bind to the BoundColumn. The default value is String::Empty.
Use the DataField property to specify the field to bind to the BoundColumn.
The following example demonstrates how to use the DataField property to specify the name of the field in the data source to bind to the BoundColumn.
.NET Framework
Available since 1.1
Available since 1.1
Show: