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

MultiColumnComboBox text displays "System.Data.DataRowView"

Thread ID:

Created:

Updated:

Platform:

Replies:

63148 Jun 28,2007 06:58 PM UTC Jul 3,2007 05:46 AM UTC Windows Forms 4
loading
Tags: Tools
Mark Atkinson
Asked On June 28, 2007 06:58 PM UTC

In 5.1.1 libraries when my MultiColumnComboBox's bound value is NULL, the text displayed is always "System.Data.DataRowView".
I realize that there's a workaround by setting the SelectedIndex = 1 at certain times but I really don't want to show the Text as the first value in the (parent related) DataSource when the true value is NULL. I want to just show an empty string.
To phrase it differently, even though the controls DataSource may have many records in it, the control's databinding could still be null - in that case, the control should display blank. This was the case in the 4.X libraries.
Any ideas for a workaround?

Thanks,
Mark

Mark Atkinson
Replied On June 28, 2007 07:20 PM UTC

I see this is an open issue already. Any workaround ideas would be appreciated.


>In 5.1.1 libraries when my MultiColumnComboBox's bound value is NULL, the text displayed is always "System.Data.DataRowView".
I realize that there's a workaround by setting the SelectedIndex = 1 at certain times but I really don't want to show the Text as the first value in the (parent related) DataSource when the true value is NULL. I want to just show an empty string.
To phrase it differently, even though the controls DataSource may have many records in it, the control's databinding could still be null - in that case, the control should display blank. This was the case in the 4.X libraries.
Any ideas for a workaround?

Thanks,
Mark

JayaLakshmi [Syncfusion]
Replied On June 29, 2007 07:26 AM UTC

Hi Mark,

Thank you for using Syncfusion products.

Could you please change the DropDownStyle of MultiColumnComboBox from 'DropDownList' to 'DropDown'?

Please refer the sample below and let me know if this helps.

http://websamples.syncfusion.com/samples/Tools.Windows/F63148_1/main.htm

Regards,
Jaya

Mark Atkinson
Replied On June 29, 2007 04:13 PM UTC

We could change the DropDownStyle but this would introduce some other inconsistencies in the application we are building.
That doesn't seem like a reasonable workaround.

>Hi Mark,

Thank you for using Syncfusion products.

Could you please change the DropDownStyle of MultiColumnComboBox from 'DropDownList' to 'DropDown'?

Please refer the sample below and let me know if this helps.

http://websamples.syncfusion.com/samples/Tools.Windows/F63148_1/main.htm

Regards,
Jaya

JayaLakshmi [Syncfusion]
Replied On July 3, 2007 05:46 AM UTC


Hi Mark,

Could you please try the following code snippet and let me know if this helps?

this.multiColumnComboBox1.TextBox.Clear();
this.multiColumnComboBox1.SelectedText = "Name0";

Please refer the modified sample.

http://websamples.syncfusion.com/samples/Tools.Windows/F63148_2/main.htm

Thanks for your patience.

Regards,
Jaya

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

;