ClassGridViewCommandColumn
Inherits GridViewDataColumn and contains buttons, one per row.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewCommandColumn : GridViewDataColumn, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IEditorProvider, INotifyPropertyChangingEx, IDataConversionInfoProvider, IGridViewEventListener, ITypeDescriptorContext, IServiceProvider
Inheritance: objectDisposableObjectRadObjectGridViewColumnGridViewDataColumnGridViewCommandColumn
Implements:
Inherited Members
Constructors
GridViewCommandColumn()
Initializes a new instance of the GridViewCommandColumn.
Declaration
public GridViewCommandColumn()
GridViewCommandColumn(string)
Initializes a new instance of the GridViewCommandColumn.
Declaration
public GridViewCommandColumn(string fieldName)
Parameters
fieldName
A string value referring to the unique name of the column.
GridViewCommandColumn(string, string)
Initializes a new instance of the GridViewCommandColumn.
Fields
ImageAlignmentProperty
Declaration
public static RadProperty ImageAlignmentProperty
Field Value
UseDefaultTextProperty
Declaration
public static RadProperty UseDefaultTextProperty
Field Value
Properties
AllowFiltering
Gets or sets a value indicating whether the user can filter by this column.
Declaration
[Browsable(true)]
public override bool AllowFiltering { get; set; }
Property Value
Overrides
AllowGroup
Declaration
[Browsable(true)]
public override bool AllowGroup { get; set; }
Property Value
Overrides
Remarks
This property is overriden to always return false since grouping by this column is not allowed.
AllowSearching
Gets or sets a value indicating whether the user can search by this column.
Declaration
[Browsable(true)]
public override bool AllowSearching { get; set; }
Property Value
Overrides
DefaultText
Gets or sets the default text displayed on the button cell.
Declaration
[Browsable(true)]
public virtual string DefaultText { get; set; }
Property Value
Image
Gets or sets the default text displayed on the button cell.
Declaration
[Browsable(true)]
[TypeConverter(typeof(ImageTypeConverter))]
public Image Image { get; set; }
Property Value
ImageAlignment
Gets or sets the image layout of the image inside the cells.
Declaration
[Browsable(false)]
public virtual ContentAlignment ImageAlignment { get; set; }
Property Value
ReadOnly
Declaration
[Browsable(true)]
public override bool ReadOnly { get; set; }
Property Value
Overrides
Remarks
This property is overriden to always return true since Command column cannot be edited.
UseDefaultText
Gets or sets a value indicating whether the default text or the value as text will appear on the button displayed by the cell.
Declaration
[Browsable(true)]
public bool UseDefaultText { get; set; }
Property Value
Methods
GetCellType(GridViewRowInfo)
Gets the type of the cell.
Declaration
public override Type GetCellType(GridViewRowInfo row)
Parameters
row
The row.
Returns
Overrides
GetDefaultGroupByExpression()
Declaration
public override string GetDefaultGroupByExpression()
Returns
string.Empty
Overrides
Remarks
Grouping by this type of column cannot be performed. That method returns string.empty