This documentation is archived and is not being maintained.

BoundColumn.DataField Property

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

[Visual Basic]
Public Overridable Property DataField As String
[C#]
public virtual string DataField {get; set;}
[C++]
public: __property virtual String* get_DataField();
public: __property virtual void set_DataField(String*);
[JScript]
public function get DataField() : String;
public function set DataField(String);

Property Value

The name of the field to bind to the BoundColumn. The default value is String.Empty.

Remarks

Use the DataField property to specify the field to bind to the BoundColumn.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

BoundColumn Class | BoundColumn Members | System.Web.UI.WebControls Namespace | String.Empty

Show: