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

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

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;
                converter.GroupingGridToExcel(this,
                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?
 
 

2 Replies

GM Gaukhar Massabayeva 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


AS Athiram S Syncfusion Team 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.

Regards,
Athiram S

Loader.
Live Chat Icon For mobile
Up arrow icon