This is a migrated thread and some comments may be shown as answers.

Can't change value of combobox

1 Answer 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
roy z
Top achievements
Rank 1
roy z asked on 23 May 2010, 11:19 AM
Hello,
Strange thing when using your RadComboBox.
I have a comboBox bind to a dataTable.
When I'm trying to change the value of the comboBox It stay NULL.

Now, I check this And I've noticed something strange:
In debug, When I'm standing on the object "radComboBox1.selectedValue" I see the a value (lats say) '12345'.
If I click on the value it self (I'm using visual studio 2008) It goes into edit mode and then I see that the value is actually: '12345M'.

I don't have a clue where this 'M' come from. It doesn't appear  any where in my sql,datatable or code.

I tried the some code with a simple comboBox And it was fine (with out the 'M').

Do you know this behavior?

Thanks,
Roy.

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 25 May 2010, 05:34 PM
Hi roy z,

Thank you for your question.

I suppose that the field for the GridViewComboBoxColumn instance is of decimal type. Hence, when you're debugging your application in Visual Studio, it's possible to see M suffix due to the format of the decimal type. You can read more about decimal type in .NET Framework in this MSDN article. Could you send to us a code snippet that shows to us how you initialize and create combo box column in the grid? What is the schema of your data source?
 
A bit off topic, please ask the person who has purchased our controls in your company to add you as a License Developer to the purchase. This will give you full access to the products your company has purchased, to our downloads section, and to our support ticketing system. Additionally, all your questions will be reviewed according to the license you have. More information on License Developers you can find here: www.telerik.com/account/faqs.aspx.


Best wishes,
Svett
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
roy z
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or