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.
Here is where I set up the sorting class defined above:
// Set up a local variable for each tables descriptor GridTableDescriptor SeasonTotalsTableDescriptor = gridSkiResults.GetTableDescriptor(TrackResults.SeasonTotalsTable); GridTableDescriptor MonthTotalsTableDescriptor = gridSkiResults.GetTableDescriptor(TrackResults.MonthTotalsTable); GridTableDescriptor DailyTotalsTableDescriptor = gridSkiResults.GetTableDescriptor(TrackResults.DailyTotalsTable); GridTableDescriptor SegmentsTableDescriptor = gridSkiResults.GetTableDescriptor(TrackResults.SegmentsTable); GridTableDescriptor SegmentDataTableDescriptor = gridSkiResults.GetTableDescriptor(TrackResults.SegmentDataTable);
// Change the column header text for the following columns
SeasonTotalsTableDescriptor.GetColumnDescriptor(TrackResults.LiftLineTimeColumn).HeaderText = "Lift Line Time"; MonthTotalsTableDescriptor.GetColumnDescriptor(TrackResults.LiftLineTimeColumn).HeaderText = "Lift Line Time"; DailyTotalsTableDescriptor.GetColumnDescriptor(TrackResults.LiftLineTimeColumn).HeaderText = "Lift Line Time";
SetColumnStyleDelegate ConfigColumnsDelegate = new SetColumnStyleDelegate(ConfigColumn); UpdateProperties(ConfigColumnsDelegate);
// Set up custom sorting on months also ensures sort when adding records. SortColumnDescriptor SCD = new SortColumnDescriptor(TrackResults.MonthColumn); SCD.Comparer = new SortCompareMonths() as System.Collections.IComparer; MonthTotalsTableDescriptor.SortedColumns.Add(SCD);
I put a breakpoint in the sorting method but it never gets called.