Numeric fields in database

2 posts, 0 answers
  1. Andrés David Santacoloma Isaza
    Andrés David Santacoloma Isaza avatar
    51 posts
    Member since:
    Mar 2010

    Posted 21 Dec 2010 Link to this post

    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.
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 27 Dec 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top