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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

100576 Aug 17,2011 06:43 AM Aug 23,2011 12:31 AM Windows Forms 1
loading
Tags: GridControl
Pawan Ragde
Asked On August 17, 2011 06:43 AM

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:






Asarudheen S [Syncfusion]
Replied On August 23, 2011 12:31 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;