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
740
Display two strings as the Value/Text for UltraComboEditor
posted

Hi Everyone,

I would like to know whether we can display e,g, Full Name , thats is " [first_name] + " "+ [surname]" as the display text?

I have set the combo's DataSource and DataMember as the [first_name]. But I need to display first name and surname as the Full name for the combo values.

e.g.

Ann Smith

David Brown

Mary Cornell

Is there a way we can set it up like WinGrid Column formula?

ultraGridColumn.Formula =  "[surname] & \", \" & [first_name]";

Any suggestions?? Urgent!

 Thanks in Advance.

NW

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    What you can do is add an unbound column to your UltraCombo. I would recommend using the InitializeLayout for this. 

    You can then apply a formula to this column like you have above. Or, you could use the InitializeRow event to populate this unbound column with whatever text you want. Then you just set the DisplayMember to the unbound column. 

     

Children