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. Image for the cookie policy date
close icon

Resize GridGrouping Control

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


5 Replies

NK Neelakandan Kannan Syncfusion Team May 5, 2015 03:36 AM UTC

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



RA Rasika May 5, 2015 10:45 AM UTC

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


NK Neelakandan Kannan Syncfusion Team May 6, 2015 04:25 AM UTC

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



RA Rasika replied to Neelakandan Kannan May 6, 2015 06:21 AM UTC

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


NK Neelakandan Kannan Syncfusion Team May 7, 2015 09:31 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon