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
close icon

Filter Bar - Child list for field [Grid Column Name] cannot be created.

Hi,
I have added a filter bar to a griddataboundgrid control.
The filtering works fine, but for some columns it says:"Child list for field [Grid Column Name] cannot be created."
And after this the filter stops working, hangs and then i get an exception(as stated below).

What can i do to resolve this issue?

The code is as below:

gridDataBoundGrid1.GridBoundColumns.Clear();
gridDataBoundGrid1.Selections.Clear();
gridDataBoundGrid1.BeginUpdate();
if (filterBar != null && filterBar.Wired)
{
filterBar.RowFilter = "";
filterBar.UnwireGrid();
}
gridDataBoundGrid1.AllowResizeToFit = true;
gridDataBoundGrid1.DataSource = dt;
GridModel gridModel = gridDataBoundGrid1.Model;
gridModel.ColWidths.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.IncludeHeaders);

filterBar = new GridFilterBar();
filterBar.WireGrid(gridDataBoundGrid1);
gridDataBoundGrid1.EndUpdate();

Exception:

System.ArgumentException was unhandled by user code
Message="Child list for field MTD Avg cannot be created."
Source="System.Windows.Forms"
StackTrace:
at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember)
at System.Windows.Forms.ListControl.SetDataConnection(Object newDataSource, BindingMemberInfo newDisplayMember, Boolean force)
at System.Windows.Forms.ListControl.OnBindingContextChanged(EventArgs e)
at System.Windows.Forms.Control.AssignParent(Control value)
at System.Windows.Forms.Control.ControlCollection.Remove(Control value)
at Syncfusion.Windows.Forms.Grid.GridComboBoxCellRenderer.DetachListBoxPart()
at Syncfusion.Windows.Forms.Grid.GridComboBoxCellRenderer.Dispose(Boolean disposing)
at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.Dispose()
at Syncfusion.Windows.Forms.Grid.GridCellRendererCollection.Clear()
at Syncfusion.Windows.Forms.Grid.GridCellRendererCollection.Dispose(Boolean disposing)
at Syncfusion.ComponentModel.NonFinalizeDisposable.Dispose()
at Syncfusion.Windows.Forms.Grid.GridControlBase.Dispose(Boolean disposing)
at Syncfusion.Windows.Forms.Grid.GridControlBaseImp.Dispose(Boolean disposing)
at Syncfusion.Windows.Forms.Grid.GridDataBoundGrid.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at COCMainScreen.frmDataViewer.Dispose(Boolean disposing) in E:\COCMainScreen_Prod\frmDataViewer.Designer.cs:line 20
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.Control.Dispose(Boolean disposing)
at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
at System.Windows.Forms.Form.Dispose(Boolean disposing)
at COCMainScreen.frmMDI.Dispose(Boolean disposing) in E:\COCMainScreen_Prod\frmMDI.Designer.cs:line 20
at System.ComponentModel.Component.Dispose()
at System.Windows.Forms.ApplicationContext.Dispose(Boolean disposing)
at System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows()
InnerException:






1 Reply

AS Asarudheen S Syncfusion Team August 23, 2011 04:31 AM UTC

Hi Pawan,

Thank you for your interest in Syncfusion products.

I am afraid that I was not able to reproduce the issue. Also I have created a simple sample to test this issue .

Please have a look at the attached sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?

Regards,
Asarudheen.




100576_21c6ed75.zip

Loader.
Live Chat Icon For mobile
Up arrow icon