asp.net.ph

BoundColumn Class

System.Web.UI.WebControls Namespace


Renders a column in a DataGrid that is bound to a field in a data source.

BoundColumn Class Members

Collapse   Constructors

Visibility Constructor Parameters
public BoundColumn ( )

Collapse   Fields

Visibility Name Type
public static thisExpr String

Collapse   Properties

Visibility Name Value Type Accessibility
public DataField String [ Get , Set ]
public DataFormatString String [ Get , Set ]
public ReadOnly Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected FormatDataValue ( Object dataValue ) String
public Initialize ( ) Void
public InitializeCell ( TableCell cell , Int32 columnIndex , ListItemType itemType ) Void

Remarks

Use the BoundColumn type in a DataGrid control to display the contents of a field in the data source in a single column. The field is linked to the BoundColumn, so any updates in the data source are reflected in the corresponding cells of the DataGrid control.

This is the default type of column used by a DataGrid.

Example

The following example demonstrates using BoundColumn objects in a DataGrid to specify the display order of fields in a data source.

 Show me 

See Also

DataGrid   AutoGenerateColumns   ButtonColumn   EditCommandColumn   HyperLinkColumn   TemplateColumn Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph