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.
Syncfusion Feedback

Data bound ComboBoxAdv: Dropdown always says System.Data.DatarowView

Thread ID:

Created:

Updated:

Platform:

Replies:

69896 Nov 16,2007 12:21 AM UTC Nov 20,2007 12:02 PM UTC WinForms 3
loading
Tags: Tools
Keith Steinbeck
Asked On November 16, 2007 12:21 AM UTC

Hello,

I have a ComboBoxAdv that is bound to a data table. The DropDownStyle is DropDown, the DisplayMember property is set, and the correct data is displayed when the combobox is closed; meaning not dropped down.

When the combobox IS dropped down, all the entries in the list show as "System.Data.DataRowView".

How can I get the same display style open and closed?

Thanks!

Keith


Administrator [Syncfusion]
Replied On November 16, 2007 09:59 AM UTC

Hi Keith,

Thank you for your interest in syncfusion product.

We can view the selected list using DisplayMember property. DisplayMember property is case sensitive,
So you have to give the correct name. If we give incorrect name then it will display System.Data.DataRowView
in the dropdown list.

Code snippet
this.comboBoxAdv1.DisplayMember = "place";

Please refer the below sample
http://websamples.syncfusion.com/samples/Tools.Windows/F69896/main.htm

Please let me know if you have any questions.

Best Regards,
Prakash.


Keith Steinbeck
Replied On November 16, 2007 07:10 PM UTC

Prakash,

Thanks for the code. I was doing everything right EXCEPT I was setting the DisplayMember before I set the dataview. Oops.

A different issue: I have a MultiColumnComboBox on the same form as a ComboBoxAdv. Both are using Office2007 stye, but the style of item highlight is very different. In the ComboBoxAdv, items in the list are highlighted with a beveled gold bar; in the MCCB the rows in the table are highlighted in flat blue.

Is there a way to make the CBA look like the MCCB?

Thanks!

Keith


Fathima Shalini P [Syncfusion]
Replied On November 20, 2007 12:02 PM UTC

Hi Keith,

Currently we don’t have the support to change the item highlight color of ComboBoxAdv. We have notified our development team with this regard and we try to add this feature in future release.

Please let us know if you have further queries.

Regards,
Fathima.



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.

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

;