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
60
how to clear UltraCombo entry when cbo.dropdownstyle=dropdownlist
posted

Hi Mike,

How can I clear the text of a UltraCombo int the entry screen when cbo.dropdownstyle=dropdownlist.  I'm not supposed to add empty row to the datatable.  Thank you.

Cs

Parents
No Data
Reply
  • 280
    posted

    Hi there,

    try this: cbo.Value = null;

    Also you can make a UNION select from your db: ex

    "SELECT null AS ID, '' AS DESCR UNION SELECT YOUR_ID AS ID, YOUR_DESCR AS DESCR FROM YOUR_TABLE "

    in that case you should set the cbo.Value = DbNull.Value;

     

    Hope that helped

    Nassos

     

Children
No Data