Class GridViewCommandColumn
Inherits GridViewDataColumn and contains buttons, one per row.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class GridViewCommandColumn : GridViewDataColumn, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IEditorProvider, INotifyPropertyChangingEx, IDataConversionInfoProvider, IGridViewEventListener, ITypeDescriptorContext, IServiceProvider
Constructors
GridViewCommandColumn()
GridViewCommandColumn(String)
Initializes a new instance of the GridViewCommandColumn.
Declaration
public GridViewCommandColumn(string fieldName)
Parameters
System.String
fieldName
A string value referring to the unique name of the column. |
See Also
GridViewCommandColumn(String, String)
Initializes a new instance of the GridViewCommandColumn.
Declaration
public GridViewCommandColumn(string uniqueName, string fieldName)
Parameters
System.String
uniqueName
A string value referring to the unique name of the column. |
System.String
fieldName
A string value referring to the field name to which the column is bound. |
Fields
DefaultTextProperty
ImageAlignmentProperty
ImageProperty
UseDefaultTextProperty
Properties
AllowFiltering
Gets or sets a value indicating whether the user can filter by this column.
Declaration
public override bool AllowFiltering { get; set; }
Property Value
System.Boolean
|
Overrides
AllowGroup
Declaration
public override bool AllowGroup { get; set; }
Property Value
System.Boolean
|
Overrides
Remarks
This property is overriden to always return false since grouping by this column is not allowed.
See Also
AllowSearching
Gets or sets a value indicating whether the user can search by this column.
Declaration
public override bool AllowSearching { get; set; }
Property Value
System.Boolean
|
Overrides
DefaultText
Gets or sets the default text displayed on the button cell.
Declaration
public virtual string DefaultText { get; set; }
Property Value
System.String
|
See Also
Image
Gets or sets the default text displayed on the button cell.
Declaration
public Image Image { get; set; }
Property Value
System.Drawing.Image
|
See Also
ImageAlignment
Gets or sets the image layout of the image inside the cells.
Declaration
public virtual ContentAlignment ImageAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
ReadOnly
Declaration
public override bool ReadOnly { get; set; }
Property Value
System.Boolean
|
Overrides
Remarks
This property is overriden to always return true since Command column cannot be edited.
See Also
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
public bool UseDefaultText { get; set; }
Property Value
System.Boolean
|
See Also
Methods
GetCellType(GridViewRowInfo)
Gets the type of the cell.
Declaration
public override Type GetCellType(GridViewRowInfo row)
Parameters
GridViewRowInfo
row
The row. |
Returns
System.Type
|
Overrides
GetDefaultGroupByExpression()
Declaration
public override string GetDefaultGroupByExpression()
Returns
System.String
string.Empty |
Overrides
Remarks
Grouping by this type of column cannot be performed. That method returns string.empty