AD
Administrator
Syncfusion Team
August 26, 2003 01:30 PM UTC
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....
}