i have here a curious behaver.
when i pin and unpin a panel with integrated databoundgrid, the filterbar will be removed.
there are no style operations, no initialize routines in the grid while slide in and out.
all other layoutsettings (colheader,colsize, backcolor and so on) and databoundsettings, after slide-in are absolutely correct.
the incorrect behaver comes also when i redock with the dockingmanager, after docking-operation the filterbar is removed.
i hope you understand my description.
ADAdministrator Syncfusion Team October 28, 2003 05:37 AM
The problem is the form is recreated and the binding context changes. But you can manually assign the binding context from the docking HostControl.
That should solve the problem. Here is an example ctor:
this.BindingContext = this.dockingManager1.HostControl.BindingContext;
this.gridDataBoundGrid1.BindingContext = this.dockingManager1.HostControl.BindingContext;
DataSet ds = new DataSet();
this.gridDataBoundGrid1.DataSource = ds.Tables["Orders"];