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

data binding of the combobox using dataview

Thread ID:





43566 Apr 26,2006 12:32 PM UTC Apr 28,2006 06:04 AM UTC General Discussion 1
Tags: General Discussion
Asked On April 26, 2006 12:32 PM UTC

how to set the data binding of the combobox using dataview, I mean which property to use Items,Text..etc i am trying ListBox2.DataBindings.Add("SelectedValue", dataview, "columnName") its is not displaying any data.I just wish to populate the Listbox using filtered records

Anupama Roy [Syncfusion]
Replied On April 28, 2006 06:04 AM UTC

Hi Anon, We assume that you are working with our Syncfusion control. In your code snippet,I can see that you have used SelectedValue property.Along with this,have you set the ValueMember property? Please take a look at the code snippet: this.comboBoxBase1.ListControl.DataSource =dataview; this.comboBoxBase1.ListControl.ValueMember = "ColumnName"; this.comboBoxBase1.ListControl.DataBindings.Add("SelectedValue",dataview,"ColumnName"); The same code applies to a ListBox also: this.listBox2.DataSource =dataview; this.listBox2.ValueMember ="ColumnName"; this.listBox2.DataBindings.Add("SelectedValue",dataview,"ColumnName"); Please let us know if you have any difficulties. Thanks, Anu.


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