New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

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.

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 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.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[SuppressMessage("Microsoft.Design", "CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class GridColumn : IStateManager, IComparable

Inheritance: objectGridColumn

Derived Classes: GridButtonColumnGridCalculatedColumnGridDragDropColumnGridEditCommandColumnGridEditableColumnGridExpandColumnGridGroupSplitterColumnGridHyperLinkColumnGridImageColumnGridRowIndicatorColumn...

Implements: IComparableIStateManager

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Creates and initializes a new column with its base properties.

C#
public GridColumn()

Properties

Gets or sets the current second filter condition function.

C#
public virtual GridKnownFunction AndCurrentFilterFunction { get; set; }
Property Value:

This property returns a value of type Telerik.Web.UI.GridKnownFunction. The possible values are:

GridKnownFunction.Contains
GridKnownFunction.Custom
GridKnownFunction.DoesNotContain
GridKnownFunction.EndsWith
GridKnownFunction.EqualTo
GridKnownFunction.GreaterThan
GridKnownFunction.GridKnownFunction
GridKnownFunction.GreaterThanOrEqualTo
GridKnownFunction.IsEmpty
GridKnownFunction.IsNull
GridKnownFunction.LessThan
GridKnownFunction.LessThanOrEqualTo
GridKnownFunction.NoFilter
GridKnownFunction.NotEqualTo
GridKnownFunction.NotIsEmpty
GridKnownFunction.NotIsNull
GridKnownFunction.StartsWith

Gets or sets a value of the currently applied second filter condition value.

C#
public virtual string AndCurrentFilterValue { get; set; }
Property Value:

This property returns a string, representing the current second filter condition value, for which the column is filtered (the value, which the user has entered in the second filtering text box of the filter header context menu).

Gets or sets a value indicating whether the grid should automatically postback, when the value in the filter text-box changes, and the the focus moves to another element.

C#
public virtual bool AutoPostBackOnFilter { get; set; }
Property Value:

This property returns a Boolean value, indicating whether the grid will postback, once the focus moves to another element, and the text of the filtering textbox has changed.

C#
public virtual string ColumnGroupName { get; set; }

Gets the string representation of the type-name of this instance. The value is used by RadGrid to determine the type of the columns persisted into the ViewState, when recreating the grid after postback. The value is also used by the grid client-side object. This property is read only.

C#
[Browsable(false)]
public virtual string ColumnType { get; }

Gets or sets the current function used for filtering.

C#
public virtual GridKnownFunction CurrentFilterFunction { get; set; }
Property Value:

This property returns a value of type Telerik.Web.UI.GridKnownFunction. The possible values are:

GridKnownFunction.Between
GridKnownFunction.Contains
GridKnownFunction.Custom
GridKnownFunction.DoesNotContain
GridKnownFunction.EndsWith
GridKnownFunction.EqualTo
GridKnownFunction.GreaterThan
GridKnownFunction.GridKnownFunction
GridKnownFunction.GreaterThanOrEqualTo
GridKnownFunction.IsEmpty
GridKnownFunction.IsNull
GridKnownFunction.LessThan
GridKnownFunction.LessThanOrEqualTo
GridKnownFunction.NoFilter
GridKnownFunction.NotBetween
GridKnownFunction.NotEqualTo
GridKnownFunction.NotIsEmpty
GridKnownFunction.NotIsNull
GridKnownFunction.StartsWith

Gets or sets a value of the currently applied filter.

C#
public virtual string CurrentFilterValue { get; set; }
Property Value:

This property returns a string, representing the current value, for which the columns is filtered (the value, which the user has entered in the filtering text box).

Gets or sets (see the Remarks) the type of the data from the DataField as it was set in the DataSource.

C#
[TypeConverter(typeof(GridDataTypeConverter))]
public Type DataType { get; set; }

The DataType property supports the following base .NET Framework data types:

  • Boolean
  • Byte
  • Char
  • DateTime
  • Decimal
  • Double
  • Int16
  • Int32
  • Int64
  • SByte
  • Single
  • String
  • TimeSpan
  • UInt16
  • UInt32
  • UInt64

Gets the string representation of the DataType property of the column, needed for the client-side grid instance.

C#
[Browsable(false)]
public string DataTypeName { get; }
C#
protected bool DesignMode { get; }

Gets or sets a value indicating whether the cells corresponding to a column would be rendered with a 'display:none' style attribute (end-user-not-visible). To completely prevent cells from rendering, set the Visible property to false, instead of the Display property.

C#
public bool Display { get; set; }
Property Value:

This property returns a Boolean value, indicating whether the cells corresponding to the column would be rendered with a 'display:none' style attribute (end-user-not-visible).

Specifies the vertical collumn number where this column will appear when using EditForms editing mode and the form is autogenerated. See the remarks for details.

C#
public int EditFormColumnIndex { get; set; }

A practicle example of using this property is to deterimine the number of columns rendered in the edit form. If there will be only one column in the rendered edit form, when we retrieve the value of this property for a column, as shown in the code below:

                <pre><code class="lang-csharp">protected void RadGrid1_PreRender(object sender, EventArgs e)    {
int columnIndex = RadGrid1.MasterTableView.Columns[3].EditFormColumnIndex;    }</code></pre>

it will be equal to 0, meaning the the column belongs to the first group of columns in the edit form.

String that formats the HeaderText when the column is displayed in an edit form

C#
public string EditFormHeaderTextFormat { get; set; }
Example:
C#
<p>The following code demonstrates one possible use of this property:</p>
<div class="LanguageSpecific" name="Code_VB">
    <table class="CodeContainerTable" cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td nowrap="nowrap"></td>
            </tr>
        </tbody>
    </table>
</div>
<p>In this way, once a record enters edit mode, the name of the column will be
followed by the custom text entered in the example above.</p>
<p>[ASPX/ASCX]</p>
<p>&lt;radG:GridBoundColumn DataField="CustomerID"<br />
 HeaderText="CustomerID"<br />
 SortExpression="CustomerID"<br />
 UniqueName="CustomerID"<br />
    <strong>EditFormHeaderTextFormat="{0} is currently in edit mode"</strong>
><br />
&lt;/radG:GridBoundColumn&gt;</p>

Gets or sets the filter control ToolTip property value.

C#
public virtual string EditorControlToolTip { get; set; }
Property Value:

The filter control ToolTip property value.

Determines if the header context menu will be displayed for the current column. This property works together with the EnableHeaderContextMenu property of the corresponding GridTableView. Default value is true.

C#
public virtual bool EnableHeaderContextMenu { get; set; }

Determines whether the given column will be shown in the exported file

C#
public virtual bool Exportable { get; set; }

Get or Set if the Filter Check List will load data on demand from server.

C#
public virtual bool FilterCheckListEnableLoadOnDemand { get; set; }

Get or Set the Methood from CheckListWebServicePath Web Service defined in the TableView, that to be used for getting data for the filter check list

C#
public virtual string FilterCheckListWebServiceMethod { get; set; }

Gets or Sets the text value which should be added to alt attribute of the filter control

C#
public virtual string FilterControlAltText { get; set; }

Gets or sets the filter control ToolTip property value.

C#
public virtual string FilterControlToolTip { get; set; }
Property Value:

The filter control ToolTip property value.

Use this property to set width to the filtering control (depending on the column type, this may be a normal textbox, RadNumericTextBox, RadDatePicker, etc.)

C#
public virtual Unit FilterControlWidth { get; set; }

Gets or sets the filter delay which determines after how many milliseconds a filtering will occur after a filter value have changed.

C#
public virtual int? FilterDelay { get; set; }
Property Value:

The filter delay.

Gets or sets the filter image tool tip.

C#
public virtual string FilterImageToolTip { get; set; }
Property Value:

The filter image tool tip.

Gets or sets a string representing the URL to the image used in the filtering box.

C#
public virtual string FilterImageUrl { get; set; }
Property Value:

A string, representing the URL to the image used in the filtering box.

Gets or sets the value indincating which of the filter functions should be available for that column. For more information see GridFilterListOptions enumaration.

C#
public virtual GridFilterListOptions FilterListOptions { get; set; }
Property Value:

This property returns a value of type Telerik.Web.UI.GridFilterListOptions. The possible values are:

Telerik.Web.UI.GridFilterListOptions.AllowAllFilters
Telerik.Web.UI.GridFilterListOptions.VaryByDataType
Telerik.Web.UI.GridFilterListOptions.VaryByDataTypeAllowCustom

Gets or sets the template, which will be rendered in the filter item cell of the column.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(GridItem), BindingDirection.TwoWay)]
public virtual ITemplate FilterTemplate { get; set; }
Property Value:

A value of type ITemplate.

Style of the cell in the footer item of the grid, corresponding to the column.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle FooterStyle { get; }

Use the FooterText property to specify your own or determine the current text for the footer section of the column.

C#
public virtual string FooterText { get; set; }

Gets or sets a value indicating whether you will be able to group Telerik RadGrid by that column. By default this property is true.

C#
public virtual bool Groupable { get; set; }
Property Value:

A boolean value of either true, when you are able to group by that column, or false.

See Telerik RadGrid manual for details about using grouping. If Groupable is false the column header cannot be dragged to the GroupPanel.

Example:
C#
&lt;radG:GridBoundColumn
DataField="ContactName"
HeaderText="ContactName"
SortExpression="ContactName"
UniqueName="ContactName"
Groupable="false"&gt;
&lt;/radG:GridBoundColumn&gt;

The group-expression that should be used when grid is grouping-by this column. If not set explicitly, RadGrid will generate a group expression based on the DataField of the column (if available), using the GetDefaultGroupByExpression() method.

The grouping can be turned on/off for columns like GridBoundColumn using Groupable property.

For more information about the Group-By expressions and their syntax, see GridGroupByExpression class.

C#
public virtual string GroupByExpression { get; set; }

Gets or sets the column cell 'abbr' attribute.

C#
public virtual string HeaderAbbr { get; set; }
Property Value:

The column cell 'abbr' attribute.

Gets or sets the column cell 'axis' attribute.

C#
public virtual string HeaderAxis { get; set; }
Property Value:

The column cell 'axis' attribute.

Gets or sets the button type of the button rendered in the header item, used for sorting. The possible values that this property accepts are:

Telerik.Web.UI.GridHeaderButtonType.LinkButton
Telerik.Web.UI.GridHeaderButtonType.PushButton
Telerik.Web.UI.GridHeaderButtonType.TextButton

C#
public virtual GridHeaderButtonType HeaderButtonType { get; set; }
Property Value:

The return value for this property is of type Telerik.Web.UI.GridHeaderButtonType

Gets or sets the URL of an image in the cell in the header item of the grid current column. You can use a relative or an absolute URL.

C#
public virtual string HeaderImageUrl { get; set; }

Style of the cell in the header item of the grid, corresponding to the column.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle HeaderStyle { get; }

Use the HeaderText property to specify your own or determine the current text for the header section of the column.

C#
public virtual string HeaderText { get; set; }

Gets or sets the header tooltip of the column.

C#
public virtual string HeaderTooltip { get; set; }
Property Value:

The header tooltip.

C#
protected virtual bool IsDefaultUniqueName { get; }

This property is supposed for developers of new grid columns. It gets whether a column is currently ReadOnly. The ReadOnly property determines whether a column will be editable in edit mode. A column for which the ReadOnly property is true will not be present in the automatically generated edit form.

C#
[Browsable(false)]
public virtual bool IsEditable { get; }
Property Value:

A boolean value, indicating whether a specific column is editable.

C#
protected bool IsTrackingViewState { get; }

Style of the cells, corresponding to the column.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public virtual TableItemStyle ItemStyle { get; }

Access the valus passed from the ListBox used for CheckList in the filter.

C#
public virtual string[] ListOfFilterValues { get; set; }

Gets or sets the order index of column in the collection of RenderColumns. Use SwapColumns(string, string) method for reordering the columns.

C#
[Browsable(false)]
public int OrderIndex { get; set; }
Property Value:

integer representing the current column index. You should have in mind that GridExpandColumn and RowIndicatorColumn are always in front of data columns so that's why you columns will start from index 2.

We recommend using this property only for getting the order index for a specific column instead of setting it. Use SwapColumns(string, string) method for reordering columns.

Note that changing the column order index will change the order of the cells in the grid items, after the grid is rebound.

The value of the property would not affect the order of the column in the Columns collection.

Example:
cs-api-definition
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
foreach (GridBoundColumn column in RadGrid1.MasterTableView.Columns)
{
Response.Write(column.UniqueName + column.OrderIndex + "&lt;br&gt;");
}

RadGrid1.MasterTableView.SwapColumns(2, 4);

foreach (GridBoundColumn column in RadGrid1.MasterTableView.Columns)
{
Response.Write(column.UniqueName + column.OrderIndex + "&lt;br&gt;");
}
}

Gets the instance of the GridTableVeiw wich owns this column instance.

C#
[Browsable(false)]
public GridTableView Owner { get; }

Gets the value of the ClientID property of the RadGrid instance that owns this column. This property value is used by grid's client object

C#
[Browsable(false)]
public virtual string OwnerGridID { get; }
Property Value:

This property returns a string, which represents a the ClientID for the control.

Gets the value of the ClientID property of the GridTableView that owns this column. This property value is used by grid's client object

C#
[Browsable(false)]
public virtual string OwnerID { get; }
Property Value:

The return value of this property is a string, representing the clientID of the GridTableView, which contains the column. This is the ClientID of the grid instance, followed by "_" and another string, representing the place of the container in the control hierarchy. For the MasterTableView, the default OwnerID for a column will look like: "RadGrid1_ctl01".

Gets or sets a value indicating whether the column can be reordered client-side.

C#
public virtual bool Reorderable { get; set; }
Property Value:

This property returns a boolean value, indicating whether the column is reorderable. The default value is true, meaning that the column can be reordered, using the SwapColumns client side method.

Gets or sets a value indicating whether the column can be resized client-side. You can use this property, by setting it to false, to disable resizing for a particular column, while preserving this functionality for all the other columns.

C#
public virtual bool Resizable { get; set; }
Property Value:

The property returns a boolean value, indicating whether the column can be resized on the client.

Gets the value determining if the column is selectable.

C#
public virtual bool Selectable { get; }
Property Value:

The value determining if the column is selectable.

Indicates whether all column cells have been selected

C#
[Browsable(false)]
public bool Selected { get; set; }
Property Value:

This property returns a bool, indicating if all column cells have been selected.

Gets or sets if the filter icon in the GridFilteringItem will be visible.

C#
public virtual bool ShowFilterIcon { get; set; }

Get or Sets a value indicating whether a no sort icon should appear next to the header button, when a column is not sorted but can be sorted.

C#
public virtual bool ShowNoSortIcon { get; set; }
Property Value:

This property returns a Boolean value, indicating whether a no sort icon should appear next to the header button, when a column is not sorted but can be sorted.

Get or Sets a value indicating whether a sort icon should appear next to the header button, when a column is sorted.

C#
public virtual bool ShowSortIcon { get; set; }
Property Value:

This property returns a Boolean value, indicating whether a sort icon should appear next to the header button, when a column is sorted.

Should override if sorting will be disabled

C#
protected virtual bool Sortable { get; }

Gets or sets a string representing the URL to the image used for sorting in ascending mode.

C#
public virtual string SortAscImageUrl { get; set; }
Property Value:

A string, representing the URL to the image used for sorting in ascending mode

Gets or sets a string representing the URL to the image used for sorting in descending mode.

C#
public virtual string SortDescImageUrl { get; set; }
Property Value:

A string, representing the URL to the image used for sorting in descending mode

Gets or sets the color of a cell which is sorted.

C#
public virtual Color SortedBackColor { get; set; }
Property Value:

The color of a cell which is sorted.

The string representing a filed-name from the DataSource that should be used when grid sorts by this column. For example: 'EmployeeName'

C#
public virtual string SortExpression { get; set; }
C#
protected StateBag TableViewSpecificState { get; }

Each column in Telerik RadGrid has an UniqueName property (string). This property is assigned automatically by the designer (or the first time you want to access the columns if they are built dynamically).

C#
[Browsable(true)]
public virtual string UniqueName { get; set; }

You can also set it explicitly, if you prefer. However, the automatic generation handles most of the cases. For example a GridBoundColumn with DataField 'ContactName' would generate an UniqueName of 'ContactName'.

Additionally, there may be occasions when you will want to set the UniqueName explicitly. You can do so simply by specifying the custom name that you want to choose:

                <pre><code class="lang-csharp"><radG:GridTemplateColumn UniqueName="ColumnUniqueName"></radG:GridTemplateColumn></code></pre>
Example:
C#
<p>When you want to access a cell within a <strong>grid</strong> item, you
should use the following code to obtain the right cell:</p>
<p>TableCell cell = gridDataItem["ColumnUniqueName"];</p>
<p>or</p>
<p>gridDataItem["ColumnUniqueName"].Text =</p>
<p>to access the <strong>Text</strong> property</p>
<p>Using this property you can index objects of type
<strong>%</strong>GridDataItem:GridDataItem% or
<strong>%</strong>GridEditFormItem:GridEditFormItem% (or all descendants of
<strong>%</strong>GridEditableItem:GridEditableItem% class)</p>
<p>In events related to creating, binding or for commands in items, the event
argument has a property <strong>Item</strong> to access the item that event is
fired for. To get an instance of type <strong>GridDataItem</strong>, you should use
the following:</p>
<p>//presume e is the event argument object<br />
if (e.Item is GridDataItem)<br />
{<br />
GridDataItem gridDataItem = e.Item as GridDataItem;</p>
C#
protected StateBag ViewState { get; }

Gets or sets a value indicating if the column and all corresponding cells would be rendered.

C#
public virtual bool Visible { get; set; }
Property Value:

This property returns a Boolean value, indicating whether the cells corresponding to the column, would be visible on the client, and whether they would be rendered on the client.

Methods

Creates a copy of the current column.

C#
public abstract GridColumn Clone()
Returns:

GridColumn

Note: When implementing/overriding this method be sure to call the base member or call CopyBaseProperties to be sure that all base properties will be copied accordingly

C#
protected virtual void CopyBaseProperties(GridColumn FromColumn)
Parameters:FromColumnGridColumn

Evaluates the column filter expression based on the CurrentFilterFunction, CurrentFilterValue, AndCurrentFilterFunction, AndCurrentFilterValue propeties. It could be used to handle custom filtering and is internally used for determining GridTableView FilterExpression value.

C#
public virtual string EvaluateFilterExpression()
Returns:

string

Gets a string representing a filter expression, based on the settings of all columns that support filtering, with a syntax ready to be used by a DataView object

C#
public virtual string EvaluateFilterExpression(GridFilteringItem filteringItem)
Parameters:filteringItemGridFilteringItemReturns:

string

C#
protected bool FunctionTakesNoArguments(GridKnownFunction filterFunction)
Parameters:filterFunctionGridKnownFunctionReturns:

bool

C#
protected virtual string GenerateUniqueName()
Returns:

string

C#
protected string GenerateUniqueNameBase(string Base)
Parameters:BasestringReturns:

string

Gets the value of the Text property of a textbox control found in the cell, used to set the value of the CurrentFilterValue property.

C#
protected virtual string GetCurrentFilterValueFromControl(TableCell cell)
Parameters:cellTableCellReturns:

string

This method should be used in case you develop your own column. It returns the full list of DataFields used by the column. GridTableView uses this to decide which DataFields from the specified DataSource will be inlcuded in case of GridTableView.RetrieveAllDataFields is set to false.

C#
public virtual IDictionary GetCustomPropertyDataFields(object dataItemInstance)
Parameters:dataItemInstanceobjectReturns:

IDictionary

Calculate the default Group-by expression based on the settings of the DataField (if available)

C#
public virtual string GetDefaultGroupByExpression()
Returns:

string

For example, if a column's DataField is ProductType the default group-by expression will be: 'ProductType Group By ProductType'

C#
protected virtual string GetFilterDataField()
Returns:

string

Gets a list of filter functions based on the settings of the FilterListOptions property.

C#
protected virtual ArrayList GetFilterFunctionsList(GridFilterListOptions options, ArrayList sourceList)
Parameters:optionsGridFilterListOptionssourceListArrayListReturns:

ArrayList

The Initialize method is inherited by a derived GridColumn class. Is is used to reset a column of the derived type.

C#
public virtual void Initialize()

This method is mainly used to reset properties common for all column types derived from GridColumn class.

The Initialize method is usually called during data-binding, prior to the first row being bound.

After a call to this method the column should add the corresponding controls (text, labels, input controls) into the cell given, regarding the inItem type and column index.

Note: This method is called within RadGrid and is not intended to be used directly from your code.

C#
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
public virtual void InitializeCell(TableCell cell, int columnIndex, GridItem inItem)
Parameters:cellTableCellcolumnIndexintinItemGridItem

This method returns true if the column is bound to the specified field name.

C#
public virtual bool IsBoundToFieldName(string name)
Parameters:namestring

The name of the DataField, which will be checked.

Returns:

bool

C#
protected bool IsUniqueName(string testName)
Parameters:testNamestringReturns:

bool

C#
protected virtual void LoadViewState(object savedState)
Parameters:savedStateobject
C#
protected virtual void OnColumnChanged()

Prepares the cell of the item given, when grid is rendered.

C#
[SuppressMessage("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
public virtual void PrepareCell(TableCell cell, GridItem item)
Parameters:cellTableCellitemGridItem

Modifies the CurrentFilterFunction and CurrentFilterValue properties according to the function given and the corresponding filter text-box control in the filtering item.

C#
public virtual void RefreshCurrentFilterValue(GridFilteringItem filteringItem, string functionName)
Parameters:filteringItemGridFilteringItemfunctionNamestring

Modifies the CurrentFilterValue property according to the corresponding selected item in the filter text-box control in the filtering item.

C#
public virtual void RefreshCurrentFilterValue(GridFilteringItem filteringItem)
Parameters:filteringItemGridFilteringItem

Resets the values of the CurrentFilterFunction, CurrentFilterValue, AndCurrentFilterFunction and AndCurrentFilterValue properties to their defaults.

C#
public void ResetCurrentFilterValue()

Resets the values of the CurrentFilterFunction and CurrentFilterValue properties to their defaults.

C#
public void ResetCurrentFilterValue(GridFilteringItem item)
Parameters:itemGridFilteringItem
C#
protected virtual object SaveViewState()
Returns:

object

Sets the value of the property CurrentFilterValue as a text on the TextBox control found in the cell

C#
protected virtual void SetCurrentFilterValueToControl(TableCell cell)
Parameters:cellTableCell

Instantiates the filter controls (text-box, image.) in the cell given

C#
protected virtual void SetupFilterControls(TableCell cell)
Parameters:cellTableCell
C#
protected virtual bool ShouldSerializeFilterImageUrl()
Returns:

bool

C#
protected virtual bool ShouldSerializeSortAscImageUrl()
Returns:

bool

C#
protected virtual bool ShouldSerializeSortDescImageUrl()
Returns:

bool

This method should be used in case you develop your own column. It returns true if the column supports filtering.

C#
public virtual bool SupportsFiltering()
Returns:

bool

C#
protected virtual void TrackViewState()
C#
protected virtual void TrySetOnClientClickScript(Control control, GridItem item, string functionName, params string[] functionParameters)
Parameters:controlControlitemGridItemfunctionNamestringfunctionParametersstring[]
C#
protected void UpdateUniqueNameIfDefault(string value)
Parameters:valuestring
In this article
DefinitionConstructorsGridColumn()PropertiesAndCurrentFilterFunctionAndCurrentFilterValueAutoPostBackOnFilterColumnGroupNameColumnTypeCurrentFilterFunctionCurrentFilterValueDataTypeDataTypeNameDesignModeDisplayEditFormColumnIndexEditFormHeaderTextFormatEditorControlToolTipEnableHeaderContextMenuExportableFilterCheckListEnableLoadOnDemandFilterCheckListWebServiceMethodFilterControlAltTextFilterControlToolTipFilterControlWidthFilterDelayFilterImageToolTipFilterImageUrlFilterListOptionsFilterTemplateFooterStyleFooterTextGroupableGroupByExpressionHeaderAbbrHeaderAxisHeaderButtonTypeHeaderImageUrlHeaderStyleHeaderTextHeaderTooltipIsDefaultUniqueNameIsEditableIsTrackingViewStateItemStyleListOfFilterValuesOrderIndexOwnerOwnerGridIDOwnerIDReorderableResizableSelectableSelectedShowFilterIconShowNoSortIconShowSortIconSortableSortAscImageUrlSortDescImageUrlSortedBackColorSortExpressionTableViewSpecificStateUniqueNameViewStateVisibleMethodsClone()CopyBaseProperties(GridColumn)EvaluateFilterExpression()EvaluateFilterExpression(GridFilteringItem)FunctionTakesNoArguments(GridKnownFunction)GenerateUniqueName()GenerateUniqueNameBase(string)GetCurrentFilterValueFromControl(TableCell)GetCustomPropertyDataFields(object)GetDefaultGroupByExpression()GetFilterDataField()GetFilterFunctionsList(GridFilterListOptions, ArrayList)Initialize()InitializeCell(TableCell, int, GridItem)IsBoundToFieldName(string)IsUniqueName(string)LoadViewState(object)OnColumnChanged()PrepareCell(TableCell, GridItem)RefreshCurrentFilterValue(GridFilteringItem, string)RefreshCurrentFilterValue(GridFilteringItem)ResetCurrentFilterValue()ResetCurrentFilterValue(GridFilteringItem)SaveViewState()SetCurrentFilterValueToControl(TableCell)SetupFilterControls(TableCell)ShouldSerializeFilterImageUrl()ShouldSerializeSortAscImageUrl()ShouldSerializeSortDescImageUrl()SupportsFiltering()TrackViewState()TrySetOnClientClickScript(Control, GridItem, string, params string[])UpdateUniqueNameIfDefault(string)
Not finding the help you need?
Contact Support