Real Software Forums
http://forums.realsoftware.com/

Column resize on maximize with Einhugur StyleGrid.
http://forums.realsoftware.com/viewtopic.php?f=20&t=45712
Page 1 of 1

Author:  eleventh-hour [ Wed Oct 24, 2012 6:18 pm ]
Post subject:  Column resize on maximize with Einhugur StyleGrid.

I have added a stylegrid to my window and everything is fine as long as the window remains the size it was when created but when maximized the columns remain the same size.

I'd like to resize the columns to fit the control when it is maximized on the window.

Any pointers on how to accomplish this would be helpful.

Thanks for your time,

Troy

Author:  jharris [ Tue Nov 27, 2012 3:27 pm ]
Post subject:  Re: Column resize on maximize with Einhugur StyleGrid.

Hopefully this is what you need. It's from the Einhugur website.

Put a code like this in the ControlResized event of the Grid:

me.Column(1).Width = (me.GetMeasure(GridMeasure.ContentAreaWidth)) * 0.5 // 50%
me.Column(2).Width = (me.GetMeasure(GridMeasure.ContentAreaWidth) * 0.3 // 30%
me.Column(3).Width = (me.GetMeasure(GridMeasure.ContentAreaWidth)) * 0.2 // 20%

Author:  eleventh-hour [ Tue Nov 27, 2012 3:56 pm ]
Post subject:  Re: Column resize on maximize with Einhugur StyleGrid.

Thank you, that worked.

Can you possibly tell me where on the website? I read through the documentation before I posted.

Thanks,

Troy

Author:  jharris [ Tue Nov 27, 2012 4:20 pm ]
Post subject:  Re: Column resize on maximize with Einhugur StyleGrid.

Top left of the website you should see a link for 'Support'.

Click on it and you should see a link for 'FAQ'.

You will find the information on that page.

Author:  eleventh-hour [ Tue Nov 27, 2012 5:07 pm ]
Post subject:  Re: Column resize on maximize with Einhugur StyleGrid.

Thanks again for the help.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/