RadGrid for ASP.NET

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


Displays a DropDown control for each item in the column. This allows you to edit for example lookup field(s) from data table(s).

Object Model




 

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

Syntax

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

Remarks

Here is the mechanism which Telerik RadGrid uses to present values for GridDropDownColumn. Consider the snippet below:

<rad:GridDropDownColumn
UniqueName="LevelID"
ListDataMember="Level"
ListTextField="Description"
ListValueField="LevelID"
HeaderText="LevelID"
DataField="LevelID"
/>


As you can see, a requirement for the proper functioning of GridDropDownColumn is that all column values referenced by the DataField attribute match the column values referenced by the ListValueField attribute.
If there are values in the LevelID column of the LevelID table which do not have corresponding equal values in the LevelID column of the Level table, then the grid will display the default first value from the Description column as it will not "know" what is the correct field.

Inheritance Hierarchy

System.Object
   Telerik.WebControls.GridColumn
      Telerik.WebControls.GridEditableColumn
         Telerik.WebControls.GridDropDownColumn

Requirements

Namespace: Telerik.WebControls

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

Assembly: RadGrid (in RadGrid.dll)

See Also