Skip to content

Enhance QuickGrid by Exposing Column Metadata for Extensibility#66994

Draft
vendasankarsf3945 wants to merge 1 commit into
dotnet:mainfrom
vendasankarsf3945:fix-quickgrid-column-exposure
Draft

Enhance QuickGrid by Exposing Column Metadata for Extensibility#66994
vendasankarsf3945 wants to merge 1 commit into
dotnet:mainfrom
vendasankarsf3945:fix-quickgrid-column-exposure

Conversation

@vendasankarsf3945
Copy link
Copy Markdown

Enhance QuickGrid by Exposing Column Metadata for Extensibility

Description

Exposed the protected Columns property on QuickGrid<TGridItem> to allow derived classes to access the column list.

The _columns list was previously private, preventing developers from creating custom grid components that inherit from QuickGrid and need to enumerate columns (e.g., for CSV export functionality).

Before:

The _columns field in QuickGrid.razor.cs was marked as private, which meant developers building custom grid components that inherit from QuickGrid could not access the column list. This prevented implementing features like CSV export where the component needs to read column headers to build the export file.

For example, when building an exportable grid component that overrides QuickGrid to add CSV export functionality, the derived class had no way to enumerate the defined columns because _columns was private.

After:

The Columns property is now declared as protected, returning an IReadOnlyList<ColumnBase<TGridItem>>. This allows any class that inherits from QuickGrid<TGridItem> to access the list of columns and retrieve properties like Title for each column.

With this change, developers can now create derived classes that implement CSV export by iterating over Columns and reading the Title property of each column to build the header row of the export file.

Fixes #45398

@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Jun 3, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jun 3, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Thanks for your PR, @vendasankarsf3945. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@vendasankarsf3945
Copy link
Copy Markdown
Author

@dotnet-policy-service agree company="Syncfusion, Inc."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QuickGrid: expose list of columns via public method or making protected

1 participant