RadGrid for ASP.NET

RadGrid Send comments on this topic.
ColumnCreating Event
See Also 
Telerik.WebControls Namespace > RadGrid Class : ColumnCreating Event


Fires before a custom column is created. You can handle the event to replace or modify the instance of the column that should be created and added into the collection of column in the corresponding GridTableView.   

Event Data

The event handler receives an argument of type GridColumnCreatingEventArgs containing data related to this event. The following GridColumnCreatingEventArgs properties provide information specific to this event.

PropertyDescription
Column  
ColumnType  
OwnerTableView  
 

 

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

Syntax

Visual Basic (Declaration) 
Public Event ColumnCreating() As GridColumnCreatingEventHandler
Visual Basic (Usage)Copy Code
Dim instance As RadGrid
Dim handler As GridColumnCreatingEventHandler
 
AddHandler instance.ColumnCreating, handler
C# 
public event GridColumnCreatingEventHandler ColumnCreating()
 

Event Data

The event handler receives an argument of type GridColumnCreatingEventArgs containing data related to this event. The following GridColumnCreatingEventArgs properties provide information specific to this event.

PropertyDescription
Column  
ColumnType  
OwnerTableView  

Remarks

The ColumnCreating event of Telerik RadGrid is fired only for custom grid columns. It is not designed to be used to cancel the creation of auto-generated columns. Its purpose is to have place where to define your custom columns (extending the default grid columns) programmatically and add them to the grid Columns collection.

See the manual part of Telerik RadGrid documentation for details about Telerik RadGrid inheritance.

Requirements

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

See Also