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

Numeric fields in database

1 Answer 57 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Andrés David Santacoloma Isaza
Top achievements
Rank 1
Andrés David Santacoloma Isaza asked on 21 Dec 2010, 11:47 PM
Hi:
The problem is that when the field of my table in the database is numeric and I click on my multicolumncombobox, the text that appears is the first field with varchar format.
For example I have a table named "Facturas" with fields:
-codigoFactura: int
-fechaFactura: varchar
And in that table I have the record: (1,'11 / 12 / 2010')
when I click on the multicolumncombobox, text shown is 11/12/2010, but I want the text to be 1.

Note: This problem is only when formatting numeric fields.

Thank you for your help.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 27 Dec 2010, 03:26 PM
Hi Andrés,

You should set the DisplayMember and ValueMember properties of RadMultiColumnCombpBox to the same numeric property - in this case the 'codigoFactura'.

I hope this helps. If you have any questions, do not hesitate to write me back.

Regards,
Julian Benkov
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Tags
MultiColumn ComboBox
Asked by
Andrés David Santacoloma Isaza
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or