This documentation is archived and is not being maintained.

BoundColumn Class

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

For a list of all members of this type, see BoundColumn Members.


[Visual Basic]
Public Class BoundColumn
   Inherits DataGridColumn
public class BoundColumn : DataGridColumn
public __gc class BoundColumn : public DataGridColumn
public class BoundColumn extends DataGridColumn

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Use the BoundColumn column type in a 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 BoundColumn, so any updates in the data source will reflect in the corresponding cells of the DataGrid control.

Note   This column type is the default for the DataGrid control.

To control appearance of this column, use the style properties of the DataGrid control.

CAUTION   Text is not HTML encoded before it is displayed in the 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.


Namespace: System.Web.UI.WebControls

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

Assembly: System.Web (in System.Web.dll)

See Also

BoundColumn Members | System.Web.UI.WebControls Namespace | DataGrid