Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
555
How to remove special characters before setting the text to UltraCombo
posted

Hi,

We use UltraCombo and sometimes data will be displayed in the drop down to user like "* HIIAMHERE" wherin "* " (asterisk and space) indicates it is some important information etc. What we would like to have is when user selects this row, text must be set as "HIIAMHERE" in the combo's textbox and then TextChanged event must get fired.

Thanks in Advance.

Parents
  • 469350
    Offline posted

    Hi,

    It sounds to me like you just need to use the ValueMember and DIsplayMember properties. You could add an unbound column to your UltraCombo and use the InitializeRow event to populate this unbound column with the strings you want the user to see. Then you just set the DisplayMember property to the key of the unbound column. You would set the ValueMember property to the "real" column and so the combo would return the ValueMember column value as the control's Value and the unbound column text as the Text property.

Reply Children