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.
I have this method which allows a frozen column to be grouped and it also prevents it from being to a different column location:
public void AllowFrozenColumnsToBeGrouped(string FrozenColumnName, int numberAddedColumns) { FrozenColumnGroupingName = FrozenColumnName; FrozenColumnsCanBeGrouped = true; int field = this.TableDescriptor.NameToField(FrozenColumnName); //field = this.TableDescriptor.FieldToColIndex(field); // if syncfusion fixes the problem use this line of code and erase the one below this line field = this.TableDescriptor.FieldToColIndex(field) - numberAddedColumns; // the - here manually fixes a syncfusion bug this.TableModel.Cols.FreezeRange(1, field); this.PropertyChanged += new Syncfusion.Grouping.DescriptorPropertyChangedEventHandler(grd_PropertyChanged); this.TableControlQueryAllowDragColumn += new Syncfusion.Windows.Forms.Grid.Grouping.GridQueryAllowDragColumnEventHandler(grd_TableControlQueryAllowDragColumn); }
This works great. But now I am wondering could I do the same thing for Detail tables? If so how could I do this?
Also there might be a bug with the Grid. If you manually move a column around in code and then run this method this line of code returns the wrong column number: field = this.TableDescriptor.FieldToColIndex(field);