DataGridDoubleColumn in DataGrid

Editors for WPF Forum

Posted 14 years ago by JDEV
Version: 9.1.0506
Avatar

I am using DataGridDoubleColumn and DataGridInt32Column in my DataGrid.

Three issues:
1. The enter key does not commit the value, only tab.

2. If I press F2 to get into edit mode, then change the numeric value and click to a different row, the value remains visible. When I go back to the cell and press F2 the original value apprears. E.g. the new value was never committed but remains displayed.

3. In the stock DataGridTextColumn when a cell is selected, I just start typing to edit the value. In DataGridDoubleColumn I must press F2 or click a second time to get into edit mode. Typing a numeric key should get me into edit mode automatically.

All above are reproducible in the New Row Customiztion QuickStart on the Integer column.

Comments (2)

Posted 14 years ago by JDEV
Avatar
I was incorrect on issue 1:

A commit requires pressing Enter (commits but does not move focus). Then tab is required to leave the cell.

This is different from the stock DataGridTextColumn functionality.
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

1. By default, the parts handle the Enter key to commit any changes back up to the associated PartEditBox. We added a new PartValueCommitTriggers.EnterKeyDown configuration option, which can be excluded to disable this functionality. We have also turned this off by default when the PartEditBox derivations are used in the DataGrid. Outside the DataGrid, the functionality will remain unchanged but can be customized as needed.

2. The issue here is that the value was not being committed back up to the associated PartEditBox when clicking another cell. We updated the default value for PartValueCommitTriggers to include StringValueChange, for PartEditBox derivations used in the DataGrid. This will push the value up as the user types, and fixes this issue.

3. Unfortuantely, the hooks used by the DataGridTextColumn are not available for public consumption. Specifically, the DataGridColumn.OnInput method (which DataGridTextColumn uses) is internal, so we can't currently offer the same functionality.

Thanks for reporting these issues.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.