Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread TGrid with ctCheckbox and OnRowChanged Event
Tue, Jan 17 2017 5:15 PMPermanent Link

R&D team @ Environment Canada

I have a TGrid tied to a DataSet with 4 columns (with ControlTypes: ct Edit (x2),  ctCheckBox,  ctMultiLineEdit).

I am trying to add an OnRowChanged' Event to the grid.  My OnRowChanged Event will fire correctly for the ctEdit and ctMultiLineEdit, but not for the ctCheckBox.  I realize I need to double-click to change the value of the ctCheckBox and a single click will put the focus inside the box (but without firing the OnRowChanged Event).

Is there a way to tie the OnRowChanged Event to fire on the ctCheckBox ControlType?
 

Thanks
Nathan



Attachments: TGrid.png
Wed, Jan 18 2017 2:37 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

<< I have a TGrid tied to a DataSet with 4 columns (with ControlTypes: ct Edit (x2),  ctCheckBox,  ctMultiLineEdit).

I am trying to add an OnRowChanged' Event to the grid.  My OnRowChanged Event will fire correctly for the ctEdit and ctMultiLineEdit, but not for the ctCheckBox.  I realize I need to double-click to change the value of the ctCheckBox and a single click will put the focus inside the box (but without firing the OnRowChanged Event).

Is there a way to tie the OnRowChanged Event to fire on the ctCheckBox ControlType? >>

Hmmm, I'm not seeing that behavior here (2.06 beta candidate) - a double-click definitely triggers the OnRowChanged event.  There's been one change to the dataset events, but it won't affect this issue.

I'll have to check this out with a proper 2.05 and see if I can replicate it there.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jan 23 2017 12:48 PMPermanent Link

R&D team @ Environment Canada

Tim.. you can drop (forget) this for now. I re-tried this on a very simple project and the event fires, even when navigating the 'check box' column. It is possible that something else is intercepting it, so we'll look into that.

thanks.. Bruno (for Nathan)

///////////////////

Tim Young [Elevate Software] wrote:

Bruno,

<< I have a TGrid tied to a DataSet with 4 columns (with ControlTypes: ct Edit (x2),  ctCheckBox,  ctMultiLineEdit).

I am trying to add an OnRowChanged' Event to the grid.  My OnRowChanged Event will fire correctly for the ctEdit and ctMultiLineEdit, but not for the ctCheckBox.  I realize I need to double-click to change the value of the ctCheckBox and a single click will put the focus inside the box (but without firing the OnRowChanged Event).

Is there a way to tie the OnRowChanged Event to fire on the ctCheckBox ControlType? >>

Hmmm, I'm not seeing that behavior here (2.06 beta candidate) - a double-click definitely triggers the OnRowChanged event.  There's been one change to the dataset events, but it won't affect this issue.

I'll have to check this out with a proper 2.05 and see if I can replicate it there.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jan 24 2017 11:23 AMPermanent Link

R&D team @ Environment Canada

Tim..

Nathan did some quick testing (using EWB 2.05b3). It turns out that if you set the 'AlwaysShowControls' property (of the grid) to 'true'.. then the 'row change' does not fire when navigating rows on a 'checkbox' column. We also note that navigating the grid is quite sluggish if this property is set to true, but very fast otherwise. Finally, not sure what this property does.. as the 'checkboxes' are already visible 'always' anyway! So, from our point of view, 'problem fixed', we just set this property to 'false'.

thanks.. Bruno

///////////////////////

Steven/Phil/Nathan/Bruno @ Environment Canada wrote:

Tim.. you can drop (forget) this for now. I re-tried this on a very simple project and the event fires, even when navigating the 'check box' column. It is possible that something else is intercepting it, so we'll look into that.

thanks.. Bruno (for Nathan)

///////////////////

Tim Young [Elevate Software] wrote:

Bruno,

<< I have a TGrid tied to a DataSet with 4 columns (with ControlTypes: ct Edit (x2),  ctCheckBox,  ctMultiLineEdit).

I am trying to add an OnRowChanged' Event to the grid.  My OnRowChanged Event will fire correctly for the ctEdit and ctMultiLineEdit, but not for the ctCheckBox.  I realize I need to double-click to change the value of the ctCheckBox and a single click will put the focus inside the box (but without firing the OnRowChanged Event).

Is there a way to tie the OnRowChanged Event to fire on the ctCheckBox ControlType? >>

Hmmm, I'm not seeing that behavior here (2.06 beta candidate) - a double-click definitely triggers the OnRowChanged event.  There's been one change to the dataset events, but it won't affect this issue.

I'll have to check this out with a proper 2.05 and see if I can replicate it there.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Jan 25 2017 1:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bruno,

<< Nathan did some quick testing (using EWB 2.05b3). It turns out that if you set the 'AlwaysShowControls' property (of the grid) to 'true'.. then the 'row change' does not fire when navigating rows on a 'checkbox' column. We also note that navigating the grid is quite sluggish if this property is set to true, but very fast otherwise. Finally, not sure what this property does.. as the 'checkboxes' are already visible 'always' anyway! So, from our point of view, 'problem fixed', we just set this property to 'false'. >>

Cool, thanks. I'll check this out further.  There is already an incident/fix for something similar, so this may be the same issue:

http://www.elevatesoft.com/incident?action=viewrep&category=ewb&release=2.05&incident=4457

Tim Young
Elevate Software
www.elevatesoft.com
Image