The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
PSPrathap Senthil Syncfusion Team November 20, 2024 04:45 AM UTC
Hi À la mode Clothing Outlet,
Greetings from Syncfusion,
Based on your requirement, we suggest using the ExcelQueryCellInfo event to
export the Display name in the following way. Kindly refer to the code snippet
and sample below for your reference.
public void
ExcelQueryCellInfoHandler(Syncfusion.Blazor.Grids.ExcelQueryCellInfoEventArgs<OrderData>
args)
{
if(args.Column.Field == "Type")
{
var fileTypeString = args.Cell.Value.ToString();
var
fileType = (FileType)Enum.Parse(typeof(FileType), fileTypeString);
var displayName =
fileType.GetType()?.GetField(fileType.ToString())?.GetCustomAttribute<DisplayAttribute>()?.Name
?? fileType.ToString();