RadGrid for ASP.NET

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


A Column is the main logic unit that relates the content of the grid to properties of the objects in the DataSource.

The GridColumn defines the properties and methods that are common to all column types in RadGrid. As it is an abstract class (MustInherit in VB.NET) GridColumn class can not be created directly. You should inherit it and use its children.

Object Model


 

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

Syntax

Visual Basic (Declaration) 
Public MustInherit Class GridColumn 
Visual Basic (Usage)Copy Code
Dim instance As GridColumn
C# 
public abstract class GridColumn 

Remarks

GridColumn is the base abstract class that implements the functionality of a grid column. All inherited classes modify the base behavior corresponding to the specific data that should be displayed/edited in RadGrid. The columns that have editing capabilities derrive from GridEditableColumn class. Other instances display data, buttons, and so on in the cells of the grid regarding the type of the Item/row in which the cell resides. In you code you can create only instances of the derrived classes. In order to display a column in the grid you should add it in the corresponding GridTableView.Columns collection. Since the column collection is fully persisted in the ViewSteate you should follow the rules that apply to creating asp.net server controls dynamically, when adding columns to grid tables programmatically.

Inheritance Hierarchy

Requirements

Namespace: Telerik.WebControls

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

Assembly: RadGrid (in RadGrid.dll)

See Also