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

ComboBoxAutoComplete data binding issue

Thread ID:





71168 Jan 18,2008 05:25 PM UTC Feb 20,2008 11:42 AM UTC WinForms 8
Tags: Tools
Subrata Das
Asked On January 18, 2008 05:25 PM UTC

In my Winform(C#) application I am using a "ComboBoxAutoComplete" control.

The problem that I am facing is that though I am binding the control with a DataTable which is residing inside a DataSet,when I run the screen the control does not show any data.But I have checked several times and found that DataTable contains data.

The code that I wrote is given below.

cmbRelationship1.AutoCompleteControl.DataSource = dsReptGrpDetl.Tables[0].DefaultView ;
cmbRelationship1.DisplayMember = "DISPLAY_NAME";
cmbRelationship1.ValueMember = "DISPLAY_ID";

Here,I want to mention one thing.I created the DataTable throgh code and added the same afterwards to the DataSet.

Can anybody pls solve my problem?

Thanks in advance.


J.Nagarajan [Syncfusion]
Replied On January 21, 2008 08:12 PM UTC

Hi Subrata ,

Thanks for your interest in Syncfusion products.

When the AutoCompleteCombobox is binding to the datatable it shows the data perfectly. Please refer to the attached sample that works fine in our latest version(v6.1.0.34).


Please refer to it and let me know if this helps.


Subrata Das
Replied On January 22, 2008 06:58 AM UTC

Hi Nagaraj,
Thanks for your reply.
I ran the small project that was provided by you.

It is showing "Ajay" as selected but the comboBox is not expanding when I click it.

Also pls let me know how to find out the version of Syncfusion in my system.

Waiting for your help!

Thanks & Regards,
Subrata Das

J.Nagarajan [Syncfusion]
Replied On January 23, 2008 02:28 AM UTC

Hi Subrata ,

The attached sample could databind the ComboBoxAutoComplete control to a database.


You can know the current version of syncfusion from

Start->All Programs-> Syncfusion->Essential Studio


from the public assemblies folder(C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies)

Please let me know if you have any other questions.


Subrata Das
Replied On January 24, 2008 08:53 PM UTC

Your code is working perfectly fine.But I fail to understand why my code is not running properly-the ComboBoxAutoComplete is not showing any data though there 66 records in the table are shown during debug.I am just pasting the code here:

DataTable XX = new DataTable();
DataColumn col0 = new DataColumn("Party_Id", System.Type.GetType("System.Int32"));
DataColumn col1 = new DataColumn("Display_Name", System.Type.GetType("System.String"));
DataColumn col2 = new DataColumn("Display_Id", System.Type.GetType("System.String"));
DataColumn col3 = new DataColumn("Superuser_Flag", System.Type.GetType("System.String"));


for (int i = 0; i < dsReptGrpDetl.Tables[0].Rows.Count; i++)
DataRow dr = null;
dr = XX.NewRow();
dr["Party_Id"] = dsReptGrpDetl.Tables[0].Rows[i]["Party_Id"];
dr["Display_Name"] = dsReptGrpDetl.Tables[0].Rows[i]["Display_Name"];
dr["Display_Id"] = dsReptGrpDetl.Tables[0].Rows[i]["Display_Id"];
dr["Superuser_Flag"] = dsReptGrpDetl.Tables[0].Rows[i]["Superuser_Flag"];
cmbRelationship1.AutoCompleteControl.DataSource = XX;
this.cmbRelationship1.AutoCompleteControl.SetAutoComplete(this.cmbRelationship1, Syncfusion.Windows.Forms.Tools.AutoCompleteModes.AutoSuggest);

Frankly,I am having very bad experience in using ComboBoxAutoComplete.

Pls let me know what my fault is.

Thanks & Regards,
Subrata Das

Jeba S [Syncfusion]
Replied On January 29, 2008 07:04 AM UTC

Hi Subtrata,

Sorry for the delay in response.

I have tested the above sample with the code snippets provided by you. It seems there is no rows in the XX Table. I have added a new Table for Table[0] and loaded the data into the XX Table from the New Table. Then I have assigned the datasource to the ComboBoxAutocomplete.

Please refer the sample and let us know if it helps.


Subrata Das
Replied On February 1, 2008 06:46 AM UTC

Hi Jeba,
You are correct.I was wrong.Thanks for correcting me.

Jeba S [Syncfusion]
Replied On February 1, 2008 06:50 AM UTC

Hi Subrata,

Thank you for your update.


Replied On February 20, 2008 11:42 AM UTC

hi Subrata Das,

i think solution provided by nagrajan works fine enough. You should make use of his given source code.Hope that will help you out.

Thank you
[url=http://www.intelcs.com/].Net Consulting[/url]


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

or the page will be automatically redirected to 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