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.
Hello.
After madifying of visible columns collection for some related table, the header cell text become longer than cells under it.
How can I increase, recalculate header cell width for related table ?
Thank you.
ADAdministrator Syncfusion Team May 17, 2004 08:41 AM UTC
What version are you using?
I tried code like this is a button handler in 2.0.5.1 and it seemed to not have any problem
GridTable table = this.gridGroupingControl1.GetTable("ChildTable");
table.TableDescriptor.Columns[2].HeaderText = "SomeReallyLongName";
adjusting the column width for the longer title. Exactly how are you modifying the visible columns?
You might try calling
GridTable table = this.gridGroupingControl1.GetTable("ChildTable");
table.Reload();
this.gridGroupingControl1.Refresh();
to see if that does what you need.
ADAdministrator Syncfusion Team May 18, 2004 01:12 AM UTC
Version is 2.0.5.1, and I modifying as below:
gridRelationDescriptor3.ChildTableDescriptor.VisibleColumns.Remove("Column");
ADAdministrator Syncfusion Team May 18, 2004 01:41 AM UTC
And, I mean not header of visible columns, but header of the child table, when removing visible columns from this table.
ADAdministrator Syncfusion Team May 18, 2004 06:28 AM UTC
In the sample below, the Name column in the the GrandChildTable is removed from the VisibleColumns in a button handler and it seems to behave as expected. What is different about what you are doing?
forum_14013_1983.zip