BoundColumn::DataField Property

 

Gets or sets the field name from the data source to bind to the BoundColumn.

Namespace:   System.Web.UI.WebControls
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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: