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. Image for the cookie policy date

Resizing columns in GBDB problem

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.

3 Replies

AD Administrator Syncfusion Team 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.)

AD Administrator Syncfusion Team June 16, 2005 08:39 PM UTC

Calling grid.Model.ResetVolatileData() does nothing.

AD Administrator Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon