We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl: Increase header cell width.

Thread ID:





14013 May 17,2004 01:23 AM May 18,2004 02:28 AM Windows Forms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On May 17, 2004 01:23 AM

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.

Administrator [Syncfusion]
Replied On May 17, 2004 04:41 AM

What version are you using? I tried code like this is a button handler in 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.

Administrator [Syncfusion]
Replied On May 17, 2004 09:12 PM

Version is, and I modifying as below: gridRelationDescriptor3.ChildTableDescriptor.VisibleColumns.Remove("Column");

Administrator [Syncfusion]
Replied On May 17, 2004 09:41 PM

And, I mean not header of visible columns, but header of the child table, when removing visible columns from this table.

Administrator [Syncfusion]
Replied On May 18, 2004 02:28 AM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.