Home > DeveloperSection > Forums > WPF Datagrid Autoresize on Maximize
Royce Roy
Royce Roy

Total Post:149

Posted on    September-21-2013 8:54 AM


 1 Reply(s)
 2931  View(s)
Rate this:

My WPF application has a resolution of 1024x768. I have a datagrid that fills a vertical half of the application. In higher resolutions, when I maximize I want the datagrid to automatically resize vertically and fill the entire height. How can I do this?

Sumit Kesarwani

Total Post:378

Posted on    September-23-2013 1:14 AM

Hi Royce,

You can try setting the control's vertical alignment to stretch (VeritcalAlignment="Stretch") so that even when your window resizes, it still fills up the vertical part of your screen.

Don't want to miss updates? Please click the below button!

Follow MindStick