RadGrid for ASP.NET

RadGrid Send comments on this topic.
GridBoundColumn Class
See Also  Members  
Telerik.WebControls Namespace : GridBoundColumn Class


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

Object Model




 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Class GridBoundColumn 
   Inherits GridEditableColumn
   Implements IGridEditableColumn 
Visual Basic (Usage)Copy Code
Dim instance As GridBoundColumn
C# 
public class GridBoundColumn : GridEditableColumn, IGridEditableColumn  

Example

            <rad:GridBoundColumn FooterText="BoundColumn footer" UniqueName="CustomerID" SortExpression="CustomerID"
HeaderText="Bound<br/>Column" DataField="CustomerID">
</rad:GridBoundColumn>

Remarks

The default data binding (when AutoGenerateColumns property is set to true) generates GridBoundColumn type of columns. It displays each item from the DataSource field as text. This column is editable (implements the IGridEditableColumn interface) and provides by default GridTextColumnEditor, used for editing the text in each item.

GridBoundColumn has three similar and yet different properties controlling its visibility and rendering in a browser in regular and in edit mode:

  • Display - concerns only the appearance of the column in browser mode, client-side. The column will be rendered in the browser but all the cells will be styled with display: none. The column editor will be visible in edit mode.
  • Visible - will stop the column cells from rendering in browser mode. The column will be visible in edit mode.
  • ReadOnly - the column will be displayed according to the settings of previous properties in browser mode but will not appear in the edit-form.
    None of these properties can prevent you from accessing the column cells' content server-side using the UniqueName of the column.

Inheritance Hierarchy

System.Object
   Telerik.WebControls.GridColumn
      Telerik.WebControls.GridEditableColumn
         Telerik.WebControls.GridBoundColumn

Requirements

Namespace: Telerik.WebControls

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

Assembly: RadGrid (in RadGrid.dll)

See Also