Enlarging grid on clicking Maximize title bar button.

1 Answer 77 Views
GridView
Shubham
Top achievements
Rank 1
Iron
Shubham asked on 21 Dec 2021, 07:03 PM

Hi,

I am using Telerik UI for Winforms 2020 to create a grid and when I hit the maximize button on title bar, the grid remains the same size but the window maximizes , like the attachment below.

How can I make sure that the Grid uses the full size of window on maximizing ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Dec 2021, 05:30 AM

Hello, Shubham,

In order to adjust the control's size when its parent is resized, feel free to use either the Dock or the Anchor property.

Since this is more like a general programming question, I have found the following useful threads on this topic:

https://stackoverflow.com/questions/15131779/resize-controls-with-form-resize 

https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-dock-and-anchor?view=netdesktop-6.0 

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Shubham
Top achievements
Rank 1
Iron
commented on 23 Dec 2021, 11:22 AM

Hi Dess,
Thanks for the response and the resources.
I was using the anchor incorrectly and now have now achieved what I wanted to do.

Appreciate the response.
Happy holidays..

Tags
GridView
Asked by
Shubham
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or