skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GridColumn

Defines a data bound column in the grid that can show all types of data.

Inheritance
System.Object
ColumnBase
BoundColumnBase
GridColumn
Inherited Members
BoundColumnBase.OnParametersSet()
BoundColumnBase.GetParsedFieldEditorType(Enum, Boolean)
BoundColumnBase.Field
BoundColumnBase.FieldType
BoundColumnBase.Title
BoundColumnBase.DisplayFormat
BoundColumnBase.Editable
BoundColumnBase.Filterable
BoundColumnBase.Sortable
BoundColumnBase.ChildContent
BoundColumnBase.Template
BoundColumnBase.HeaderTemplate
BoundColumnBase.FooterTemplate
BoundColumnBase.EditorTemplate
BoundColumnBase.TextAlign
BoundColumnBase.FilterCellTemplate
BoundColumnBase.FilterMenuTemplate
BoundColumnBase.FilterMenuType
BoundColumnBase.ShowFilterCellButtons
BoundColumnBase.DefaultFilterOperator
BoundColumnBase.FilterOperators
BoundColumnBase.FilterEditorFormat
BoundColumnBase.PropertyType
ColumnBase.OnInitialized()
ColumnBase.SetParametersAsync(ParameterView)
ColumnBase.OnParametersSetAsync()
ColumnBase.OnAfterRender(Boolean)
ColumnBase.Dispose()
ColumnBase.ParentColumn
ColumnBase.HeaderClass
ColumnBase.Width
ColumnBase.MinResizableWidth
ColumnBase.MaxResizableWidth
ColumnBase.Visible
ColumnBase.Reorderable
ColumnBase.Resizable
ColumnBase.Locked
ColumnBase.Id
ColumnBase.ColumnsCollection
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll

Syntax

public class GridColumn : BoundColumnBase, IDisposable, IGridBoundColumn, IBoundColumn, IColumn, IGridColumnMenuColumn, IGridDataColumn, IDataColumn<GridCellRenderEventArgs>

Constructors

GridColumn()

Declaration
public GridColumn()

Properties

Columns

The list of child columns to produce multi-column headers.

Declaration
public RenderFragment Columns { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment

EditorType

Defines the editor used for editing for the given field. If not provided, a default editor will be used based on the field data type.

Declaration
public Nullable<GridEditorType> EditorType { get; set; }
Property Value
System.Nullable<GridEditorType>

FilterEditorType

Defines the editor used for filtering for the given field. If not provided, a default editor will be used based on the field data type.

Declaration
public Nullable<GridFilterEditorType> FilterEditorType { get; set; }
Property Value
System.Nullable<GridFilterEditorType>

Groupable

Specifies if the grid can be grouped by this column.

Declaration
public bool Groupable { get; set; }
Property Value
System.Boolean

Implements
IGridBoundColumn.Groupable

GroupFooterTemplate

Represents the column group footer cell template, where you can access and print out column aggregate values. You can render custom components and apply logic in it.

Declaration
public RenderFragment<GridGroupTemplateContext> GroupFooterTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<GridGroupTemplateContext>

Implements
IGridBoundColumn.GroupFooterTemplate

GroupHeaderTemplate

Represents the column group header template, where you can access and print out column aggregate values. The template is used when the Grid is grouped by the column. If no template is specified, the name of the Field and the current group value is displayed. You can render custom components and apply logic in it.

Declaration
public RenderFragment<GridGroupHeaderTemplateContext> GroupHeaderTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<GridGroupHeaderTemplateContext>

Implements
IGridBoundColumn.GroupHeaderTemplate

Lockable

Specifies if the column can be locked from the UI.

Declaration
public bool Lockable { get; set; }
Property Value
System.Boolean

Implements
IGridColumnMenuColumn.Lockable

OnCellRender

Called each time a cell is rendered. Use this to add custom classes to the cell based on its value.

Declaration
public Action<GridCellRenderEventArgs> OnCellRender { get; set; }
Property Value
System.Action<GridCellRenderEventArgs>

ShowColumnChooser

Specifies if the column chooser is displayed in the column menu.

Declaration
public bool ShowColumnChooser { get; set; }
Property Value
System.Boolean

Implements
IGridColumnMenuColumn.ShowColumnChooser

ShowColumnMenu

Specifies if a column menu should be shown for the column.

Declaration
public bool ShowColumnMenu { get; set; }
Property Value
System.Boolean

Implements
IGridColumnMenuColumn.ShowColumnMenu

VisibleInColumnChooser

Specifies if the column is visible in the column chooser.

Declaration
public bool VisibleInColumnChooser { get; set; }
Property Value
System.Boolean

Implements
IGridColumnMenuColumn.VisibleInColumnChooser

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

ThrowIfInvalidEditorType()

Declaration
protected override void ThrowIfInvalidEditorType()
Overrides
BoundColumnBase.ThrowIfInvalidEditorType()

ThrowIfInvalidFilterEditorType()

Declaration
protected override void ThrowIfInvalidFilterEditorType()
Overrides
BoundColumnBase.ThrowIfInvalidFilterEditorType()

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Client-side Blazor
  • Server-side Blazor
  • Demos
Community
  • Forums
  • Blogs
  • Feedback Portal
Support Resources
  • Demos
  • Knowledge Base
  • Samples Repo
  • Localizations Repo
Sample Applications
  • Dashboard
  • PWA - Stocks
  • PWA - Blazing Coffee Roasters

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.