System.Web.UI.WebControls.BoundColumn Class

A column type for the System.Web.UI.WebControls.DataGrid control that is bound to a field in a data source.

See Also: BoundColumn Members

Syntax

public class BoundColumn : DataGridColumn

Remarks

Use the System.Web.UI.WebControls.BoundColumn column type in a System.Web.UI.WebControls.DataGrid control to display the contents of a field in the data source. The values are listed in a single column. The field is linked to the System.Web.UI.WebControls.BoundColumn, so any updates in the data source will reflect in the corresponding cells of the System.Web.UI.WebControls.DataGrid control.

Note:

This column type is the default for the System.Web.UI.WebControls.DataGrid control.

To control appearance of this column, use the style properties of the System.Web.UI.WebControls.DataGrid control.

Note:

Text is not HTML encoded before it is displayed in the System.Web.UI.WebControls.BoundColumn. This makes it possible to embed script within HTML tags in the text. If the values for this column come from user input, be sure to validate the values to reduce security vulnerabilities.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0