I have a TabBarSplitterControl that contains only a GridControl for each TabBarPage and also the following problem:
I try to split a Grid using the SplitBars of the TabBarSplitterControl. When the horizontal position of the splitter is 100% the grid is redrawn and all data contained in the grid are lost. The same thing occurs when Vertical position is 100%. Please could you suggest me a workaround to solve this problem?
I have tried to read the split position using the HSplitPosChanged and VSplitPosChanged events but when the events are arising the data are already lost.
Thanks in advance for your help,
ADAdministrator Syncfusion Team August 26, 2003 08:30 AM
This is by design as the GridControl objects come and go with the split views, so you cannot rely on a particular GridControl object being around after a series of splits. New gridcontrols are created when new panes are created.
Instead, just retrieve the object that is currently available. For example, you can get the active grid control with code like:
GridControl grid = this.tabBarSplitterControl1.ActivePane as GridControl;
if(grid != null)
//got the active grid....