Results 1 to 18 of 18

Thread: Sorting data in a combobox using the underlying data model

Threaded View

  1. #10
    Hyperactive Member
    Join Date
    Nov 2013
    Posts
    292

    Re: Sorting data in a combobox using the underlying data model

    Quote Originally Posted by wes4dbt View Post
    So, you want to sort the combobox list items (names) by whether the field "Active" is checked or not?

    This statement is wrong,
    Code:
    I verified that only one item in the combobox field is checked so I can tell immediately if the sort takes place. That item should appear first in the combobox list of names.
    The checked items will be at the end of the list because "False" come before "True" in string sorting. Unless you've made to sort descending.

    You should post your code.
    Ahhh... I did not know that. That's interesting.

    There truly is no code on the form related to the combobox. It's all handled through the properties settings.

    That little tid bit of information that you gave me solves the issue. Thank you for that. I can tell the users to simply uncheck the item they wish to work with.... long story...you'd have to know what the app is for.


    Or is there a way to force true ahead of false in this matter?
    Last edited by larrycav; Jul 1st, 2015 at 05:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width