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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupingGridToExcel Cannot bind to the new display member. Parameter name: newDisplayMember

Thread ID:





107612 Mar 8,2013 01:48 PM UTC Mar 13,2013 05:18 PM UTC WinForms 2
Tags: GridControl
Gaukhar Massabayeva
Asked On March 8, 2013 01:48 PM UTC

I get the above error when trying to export my grid to excel.
Here is the code.
            GroupingGridExcelConverterControl converter = new GroupingGridExcelConverterControl();
            SaveFileDialog saveFileDialog = new SaveFileDialog();
            saveFileDialog.Filter = "Files(*.xls)|*.xls";
            saveFileDialog.DefaultExt = ".xls";
            if (saveFileDialog.ShowDialog() == DialogResult.OK)
                converter.ExportStyle = false;
                saveFileDialog.FileName, Syncfusion.GridExcelConverter.ConverterOptions.Visible);
However when this code runs error happens
Cannot bind to the new display member. Parameter name: newDisplayMember
I use comboboxes in my application. Here is the sample code
comboBoxLists.DisplayMember = "Name";
comboBoxLists.ValueMember = "Name";
That is I assign both display and value to the same property. Could that be why I am getting this error?

Gaukhar Massabayeva
Replied On March 11, 2013 02:40 PM UTC

I thought I would branch out in this question.
Currently the above described process takes a very long time and when I try to use either thread.Start(), background worker or use CurrencyManager.SuspendBinding() to somehow put the export work behind the scenes I get the following exception “BindingSource cannot be its own data source”.
I am new to threading :S so your help would be much appreciated. Thank you

Athiram S [Syncfusion]
Replied On March 13, 2013 05:18 PM UTC

Hi Gaukar,

Thanks for your interest in Syncfusion products.

We tried reproducing the issue, but we were unable to reproduce it. Kindly, attach the sample that reproduces the issue.

Please let me know if you have any concerns.

Athiram S


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon