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. Image for the cookie policy date

MultiColumnComboBox text displays "System.Data.DataRowView"

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

4 Replies

MA Mark Atkinson 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


JA JayaLakshmi Syncfusion Team 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


MA Mark Atkinson 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


JA JayaLakshmi Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon