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 Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    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

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic FiddlerCap FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Blazor Hybrid
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • Blazor Tutorials and Learning
    • First Stepswith Blazor Web Assembly
    • First Steps with Blazor Server
    • First Steps with Blazor Hybrid
    • Accessibility and Security
    • Submit a Ticket
    • FAQs

    Docs & Resources

    • Docs
    • Demos
    • Modernization and Migration
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs

    Productivity and Design Tools

    • REPL for Blazor
    • ThemeBuilder
    • Design System Documentation
    • Figma Kits
    • Visual Studio Extensions
    • Visual Studio Code Extensions
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • 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.FilterMenuButtonsTemplate
BoundColumnBase.FilterMenuType
BoundColumnBase.ShowFilterCellButtons
BoundColumnBase.DefaultFilterOperator
BoundColumnBase.FilterOperators
BoundColumnBase.FilterEditorFormat
BoundColumnBase.VisibleInColumnChooser
BoundColumnBase.Lockable
BoundColumnBase.ShowColumnMenu
BoundColumnBase.ShowColumnChooser
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, ITableColumnMenuColumn, 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

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>

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