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
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
SIGN IN To post a reply.
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
>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
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
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
SIGN IN To post a reply.
- 4 Replies
- 3 Participants
-
MA Mark Atkinson
- Jun 28, 2007 06:58 PM UTC
- Jul 3, 2007 05:46 AM UTC