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.
Unfortunately, activation email could not send to your email. Please try again.

Resizing columns in GBDB problem

Thread ID:

Created:

Updated:

Platform:

Replies:

30374 Jun 16,2005 03:30 PM Jun 16,2005 09:14 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 16, 2005 03:30 PM

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 04:20 PM

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 04:39 PM

Calling grid.Model.ResetVolatileData() does nothing.

Administrator [Syncfusion]
Replied On June 16, 2005 09:14 PM

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

CONFIRMATION

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.

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.

;