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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resizing columns in GBDB problem

Thread ID:





30374 Jun 16,2005 07:30 PM UTC Jun 17,2005 01:14 AM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On June 16, 2005 07:30 PM UTC

I have a form with a syncfusion tab control and two tab pages. Each page has a grid control on it that is anchored on all sides. When I resize the form I have code that is called to adjust the column widths of the two grids. However only the grid that is in the visible tab gets resized, the code does get run for the other grid and my debug output for the grid.model.colwidths does indicate the new size however when I switch tabs it is back to the last size.

Administrator [Syncfusion]
Replied On June 16, 2005 08:20 PM UTC

When the other tab is being displayed, try calling grid.ResetVolatileData() on the tab''s grid to see if that will make this problem go away. (You could also try calling it immedaitely after setting these colwidths on the hidden grid.)

Administrator [Syncfusion]
Replied On June 16, 2005 08:39 PM UTC

Calling grid.Model.ResetVolatileData() does nothing.

Administrator [Syncfusion]
Replied On June 17, 2005 01:14 AM UTC

I got this working by resetting the colwidths ''shortly'' after the tabpage is shown. This is done by using a timer in the SelectedIndexChanged event. http://www.syncfusion.com/Support/user/uploads/GDBG_Tab_58a2d34f.zip


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon