Results 1 to 3 of 3

Thread: CJGrid Sort on Column Header ONLY

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Long Island, New York
    Posts
    169

    Question CJGrid Sort on Column Header ONLY

    I am probably overlooking an easy way to do this... but here goes...

    I would like my cCJGrid and the related grid Db classes to sort ONLY when clicking on the column headers. I achieved this with the old dbList and I think I did it with the dbGrid.

    I noticed that when the user changes columns (i.e. when tabbing across or clicking in the cells within the column) the columns sort. This can be confusing to users when they make the selection.

    I have noticed that the code for header sort is executed even if the clicks or tabs are in the cells of the columns and not on the headers themselves.

    Any ideas? Or do I need glasses?

    Erik

  2. #2

    Default Re: CJGrid Sort on Column Header ONLY

    Are you sure that you are not using cDbCjGridPromptList instead of a ccjgrid? If it indeed is a cCjGridPromptList or cDbCjGridPromptList you can simply
    Code:
    Set pbAutoOrdering to False
    That way it is not sorted when you navigate to the next column but only when you click the header.

  3. #3
    Join Date
    Mar 2009
    Location
    Long Island, New York
    Posts
    169

    Default Re: CJGrid Sort on Column Header ONLY

    Thanks Allan. That worked.

    Erik

Tags for this Thread

Posting Permissions

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