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.

Resize GridGrouping Control

Thread ID:

Created:

Updated:

Platform:

Replies:

118976 Apr 30,2015 03:11 AM May 7,2015 05:31 AM Windows Forms 5
loading
Tags: GridGroupingControl
Rasika
Asked On April 30, 2015 03:11 AM

Hello,
I am using Grid Grouping control in my application.
I want to resize the control when I will resize its parent control.
I set 'Anchor' Property for that but it can't resized.
Is there any other way?

Regards,
Rasika


Neelakandan Kannan [Syncfusion]
Replied On May 4, 2015 11:36 PM

Hi Rasika,

Thank you for your interest in Syncfusion products.

We regret to let you know that we could not able to clearly understand your query. Here we have provided the sample for your reference. We need some more details regarding your application( whether GridGroupingControl is child for Panel or others in Main Form). Please modify the below sample to reproduce your scenario and also provide some screenshot or video. It would be more helpful for us to provide better solution as soon as possible. As a suggestion, the GridGroupingControl can be resized to Parent Control by using AllowProportionalColumnSizing property.


Code Snippet:

this.gridGroupingControl1.AllowProportionalColumnSizing = true;

Sample:
http://www.syncfusion.com/downloads/support/forum/118976/Sample_GGC959599818.zip

Please let me know if I misunderstood your query.

Regards,
Neelakandan


Rasika
Replied On May 5, 2015 06:45 AM

Thank you for reply but the solution can't help me.
I have a Panel control as parent and Grid Grouping Control is child for that panel.
I set the 'Anchor' property for both controls but Grid Grouping Control can't re sized as I maximize the form control. 
Is there any other solution?

Regards,
Rasika

Neelakandan Kannan [Syncfusion]
Replied On May 6, 2015 12:25 AM

Hi Rasika,

Thank you for your update.

We have analyzed your reported scenario at our end. If you want to set the GridGroupingControl as the child of panel control, you need to Dock GridGroupingControl as Fill. So if you resize the Form control, it will be resized based on its parent(Panel) control. Here we have provided the sample and video. Please make use of below code snippet,

Code Snippet:

//

// gridGroupingControl1

//

this.gridGroupingControl1.Dock = System.Windows.Forms.DockStyle.Fill;

//

// panel1

//

this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)

| System.Windows.Forms.AnchorStyles.Left)

| System.Windows.Forms.AnchorStyles.Right)));

this.panel1.Controls.Add(this.gridGroupingControl1);

Note:
If you find any difference with your application, please modify the below sample to reproduce your scenario. It would be grateful to provide better solution as soon as possible.

Sample:
http://www.syncfusion.com/downloads/support/forum/118976/Modified-Sample_GGC-642400508.zip

Video:
http://www.syncfusion.com/downloads/support/forum/118976/Sample_Video_118976-1426341475.zip

Please let me know if you have any concerns.

Regards,
Neelakandan


Rasika
Replied On May 6, 2015 02:21 AM

Hi Rasika,

Thank you for your update.

We have analyzed your reported scenario at our end. If you want to set the GridGroupingControl as the child of panel control, you need to Dock GridGroupingControl as Fill. So if you resize the Form control, it will be resized based on its parent(Panel) control. Here we have provided the sample and video. Please make use of below code snippet,

Code Snippet:

//

// gridGroupingControl1

//

this.gridGroupingControl1.Dock = System.Windows.Forms.DockStyle.Fill;

//

// panel1

//

this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)

| System.Windows.Forms.AnchorStyles.Left)

| System.Windows.Forms.AnchorStyles.Right)));

this.panel1.Controls.Add(this.gridGroupingControl1);

Note:
If you find any difference with your application, please modify the below sample to reproduce your scenario. It would be grateful to provide better solution as soon as possible.

Sample:
http://www.syncfusion.com/downloads/support/forum/118976/Modified-Sample_GGC-642400508.zip

Video:
http://www.syncfusion.com/downloads/support/forum/118976/Sample_Video_118976-1426341475.zip

Please let me know if you have any concerns.

Regards,
Neelakandan


Hello,
Thank you for your reply but the problem is still there.
I am attaching the screenshot of my form.
I set top,bottom,left anchor property for the Panel
and  dock property for Grid Grouping control.
When I set only Top,Left Anchor property to the panel , it shows correctly at top left position on the form.
But when I set Top,Bottom,Left Anchor Property then it shows as in the screenshot.
What should I do for that?

Regards,
Rasika

Attachment: Task_3d185cb0.rar

Neelakandan Kannan [Syncfusion]
Replied On May 7, 2015 05:31 AM

Hi Rasika,

Thank you for your update.

By default, the control will be resized based on its Anchor settings. As per your screenshot, you have used two difference controls in your application. So it is depending upon your Anchor settings of your both the controls. Here we have provided the sample which has two panels. First panel has GridGroupingControl and another one is the empty panel. Please make use of below sample,

Note:
If you have still an issue, please modify the below sample to reproduce your scenario since we could not able to clearly understand Anchor settings for all the controls that you are using in your application. Appreciate , additional information, if any.

Sample:
http://www.syncfusion.com/downloads/support/forum/118976/Modified-GGC_Anchor556899367.zip

For more details about Anchor, please refer the below link:
https://msdn.microsoft.com/en-us/library/system.windows.forms.control.anchor%28v=vs.110%29.aspx

Please let me know if you have any concerns.

Regards,
Neelakandan

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.

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.

;