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.
ADAdministrator Syncfusion Team June 16, 2005 03: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.)
ADAdministrator Syncfusion Team June 16, 2005 03:39 PM
Calling grid.Model.ResetVolatileData() does nothing.
ADAdministrator Syncfusion Team June 16, 2005 08: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.