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 2 vs Grid 1
Wed, Sep 23 2015 7:24 AMPermanent Link

PhillipH

Converting my EWB1 app and a few of things I still need to solve.
1. V1 TGrid.AlwaysShowSelection I set to False as grid is just a display of information and I don't want any selection showing up. How to do this in V2 ?
2. V2 clicking on a column header sorts the row and there doesn't seem to be a way to turn it off. I have my own function that I implement in the onheaderclick to change the row order so don't want the built in sorting happening as well ( and the caret showing up). Is their a way to disable this ?

Phillip
Wed, Sep 23 2015 8:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Phillip,

<< 1. V1 TGrid.AlwaysShowSelection I set to False as grid is just a display of information and I don't want any selection showing up. How to do this in V2 ? >>

EWB 2's TGrid doesn't have an AlwaysShowSelection, so it will only show a selection if the grid has focus.

<< 2. V2 clicking on a column header sorts the row and there doesn't seem to be a way to turn it off. I have my own function that I implement in the onheaderclick to change the row order so don't want the built in sorting happening as well ( and the caret showing up). Is their a way to disable this ? >>

Select the applicable grid column(s) in the form designer, and then turn off the Header.AllowClick property for the selected column(s) in the object inspector.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Sep 23 2015 5:16 PMPermanent Link

PhillipH

<< EWB 2's TGrid doesn't have an AlwaysShowSelection, so it will only show a selection if the grid has focus.>>

Thanks. Yes I think I was asking the wrong question here. I think the "Entire row now highlighted for hot mouse overs in TGrid when RowSelect property is True" will fix some of what I am seeing in V2, and the rest is due just to the difference in the selected background & font color, which I can override the OnCellUpdate event.

<<Select the applicable grid column(s) in the form designer, and then turn off the Header.AllowClick property for the selected column(s) in the object inspector.>>

This doesn't seem to achieve anything. Setting to true or false and the column will still sort and show caret. ?

Phillip
Wed, Sep 23 2015 6:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Phillip,

<< This doesn't seem to achieve anything. Setting to true or false and the column will still sort and show caret. ? >>

Sorry, it's a bug.  Some of the mouse/touch handling changed, and this didn't get changed with it.  A fix will be in 2.02.

Tim Young
Elevate Software
www.elevatesoft.com
Image