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.
Syncfusion Feedback

GridGroupingControl GroupDropHeader

Thread ID:

Created:

Updated:

Platform:

Replies:

12376 Mar 28,2004 04:28 PM UTC Mar 28,2004 08:56 PM UTC Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 28, 2004 04:28 PM UTC

[A much less important GridGroupingControl question that my last] Is there a way to create the GroupDropHeader as a separate control from the GridGroupingControl? I want to make my own header bar with several controls, only one of which is the GroupDropHeader. Is there a way to do this? Thanks, dan

Administrator [Syncfusion]
Replied On March 28, 2004 06:20 PM UTC

There is not simple way to move the droparea control. You can change the GridRectBounds so some of the client area is available for other controls. Maybe this will serve your purpose. Here are some code snippets that add a TextBox under the DropArea and above the grid. //in formload this.gridGroupingControl1.ShowGroupDropArea = true; this.textBox1 = new TextBox(); this.textBox1.BackColor = Color.LightGoldenrodYellow; this.gridGroupingControl1.TableControl.Controls.Add(this.textBox1); this.gridGroupingControl1.PerformLayout(); //grid.Layout event handler private void gridGroupingControl1_Layout(object sender, LayoutEventArgs e) { if(this.textBox1 != null && this.gridGroupingControl1.TableControl != null) { this.gridGroupingControl1.TableControl.ResetGridBounds(); Rectangle rect = this.gridGroupingControl1.TableControl.GridBounds; this.textBox1.Width = rect.Width; this.textBox1.Location = new Point(0,0); this.gridGroupingControl1.TableControl.GridBounds = new Rectangle(0, this.textBox1.Height + 2, rect.Width, rect.Height-this.textBox1.Height - 2); } }

Administrator [Syncfusion]
Replied On March 28, 2004 08:56 PM UTC

Thanks. Adding extra controls under the header won''t really help, but this isn''t all that important to my program -- just one of those little touches. So, you might consider it a low-priority feature request. (Basically, I have a pretty wide Grid and there''s no way the user is going to group by 30 things, so it''s wasted space. I was thinking of putting the GroupDropHeader on the top-right of the grid and then having other buttons/drops downs to its right to do things like let the user turn on and off the FilterBar and to bring up a popup that lets the select which columns are shown in the grid.)

CONFIRMATION

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.

Warning Icon 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.Close Icon

;