Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Grid column sorting
Wed, May 25 2016 9:36 AMPermanent Link

Matthew Jones

The Grid supports, out of the box, sorting of columns. It operates in a
slightly unusual way though, in that if I click on column 1, and then
click column 2, the sort on column 1 does not clear. Instead, I have to
click twice more on column 1 to clear it. I presume though that the
button click or other event can be used to do this reset - anyone know
the incantation I need to use to get "conventional" behaviour?

--

Matthew Jones
Wed, May 25 2016 1:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< The Grid supports, out of the box, sorting of columns. It operates in a slightly unusual way though, in that if I click on column 1, and then click column 2, the sort on column 1 does not clear. >>

It's supposed to be an improvement over the "usual" way that allows for sorting on multiple columns.

<< I presume though that the button click or other event can be used to do this reset - anyone know the incantation I need to use to get "conventional" behaviour? >>

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Searching_Sorting_DataSets

"To clear an existing sort, simply assign a value of sdNone to the SortDirection property of all sorted columns."

Tim Young
Elevate Software
www.elevatesoft.com
Thu, May 26 2016 3:59 AMPermanent Link

Matthew Jones

Tim Young [Elevate Software] wrote:

> << The Grid supports, out of the box, sorting of columns. It operates
> in a slightly unusual way though, in that if I click on column 1, and
> then click column 2, the sort on column 1 does not clear. >>
>
> It's supposed to be an improvement over the "usual" way that allows
> for sorting on multiple columns.

A shift-click is usually used to add to the existing sorts (that is,
not clear the existing sort).



> << I presume though that the button click or other event can be used
> to do this reset - anyone know the incantation I need to use to get
> "conventional" behaviour? >>
>
>
http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Searching_Sorting_DataSets
>
> "To clear an existing sort, simply assign a value of sdNone to the
> SortDirection property of all sorted columns."

Yes, but which event to do this on?

--

Matthew Jones
Thu, May 26 2016 1:18 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< A shift-click is usually used to add to the existing sorts (that is, not clear the existing sort). >>

Noted.

<< Yes, but which event to do this on? >>

http://www.elevatesoft.com/manual?action=viewevent&id=ewb2&comp=TGridColumn&event=OnHeaderClick

Tim Young
Elevate Software
www.elevatesoft.com
Image