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.

Data Binding

Thread ID:

Created:

Updated:

Platform:

Replies:

37343 Nov 20,2005 07:13 PM Nov 24,2005 10:59 PM Windows Forms 7
loading
Tags: Tools
Scott Griswold
Asked On November 20, 2005 07:13 PM

I was wondering if anyone has a solution to this problem. I am binding a data source to a combo box which works fine. The problem is that when the Window form is rendered the text portion of the bound combo box shows the first item. Is there a way to have not items shown?

Anupama Roy [Syncfusion]
Replied On November 21, 2005 10:57 PM

Hi Scott, Sorry for the delayed response. Could you please include the following code snippet, inorder to prevent the first item getting displayed in the Text Portion? this.comboBoxAdv1.TextBox.Clear (); Please let me know if this helps you. Thanks for your patience. Best Regards, Anu

Scott Griswold
Replied On November 22, 2005 07:11 AM

Dear Anu I tried this and it did not work. Text was still shown in the combo box. Regards, Scott > >Hi Scott, > >Sorry for the delayed response. > >Could you please include the following code snippet, inorder to prevent the first item getting displayed in the Text Portion? > > >this.comboBoxAdv1.TextBox.Clear (); > > >Please let me know if this helps you. Thanks for your patience. > >Best Regards, >Anu >

Anupama Roy [Syncfusion]
Replied On November 23, 2005 09:32 AM

Hi Scott, Could you please provide me more information regarding how you populate these values in your comboBoxAdv? Thanks, Anu.

Administrator [Syncfusion]
Replied On November 23, 2005 07:40 PM

Dear Anu, The combo box is populated by binding it to a data set. Scott >Hi Scott, > >Could you please provide me more information regarding how you populate these values in your comboBoxAdv? > >Thanks, > >Anu. > >

Anupama Roy [Syncfusion]
Replied On November 24, 2005 02:02 AM

Hi Scott, I have attached a sample here that binds the ComboBox to a dataset. And the previously suggested code snippet works fine. this.comboBoxAdv1.TextBox.Clear (); or this.comboBoxAdv1.TextBox.Text =null; Could you please modify this sample to show me your problem, if this doesn''t resolve the issue? Thanks for you patience. Regards, Anu

combobox_37343.zip

Administrator [Syncfusion]
Replied On November 24, 2005 11:57 AM

Dear Anu, The code that you sent me worked correctly. Thank you for taking the time to work through this with me Regards, Scott Griswold > >Hi Scott, > >I have attached a sample here that binds the ComboBox to a dataset. And the previously suggested code snippet works fine. > > >this.comboBoxAdv1.TextBox.Clear (); > > >or > > >this.comboBoxAdv1.TextBox.Text =null; > > >Could you please modify this sample to show me your problem, if this doesn''t resolve the issue? > >Thanks for you patience. > >Regards, >Anu >

combobox_37343.zip

Anupama Roy [Syncfusion]
Replied On November 24, 2005 10:59 PM

Hi Scott, Thanks for your update. Regards, Anu.

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.

;