ComponentOne Grid for WPF: Using Grid for WPF > Committing Data to a Data Source

Committing Data to a Data Source

From the 2009 v1 release of ComponentOne Grid for WPF, you can control when cell values updated by the end user are committed to the underlying data source. You can choose if grid and column items are updated immediately or on cell end edit using the C1DataGrid.CommitItemCellValue, Column.CommitItemCellValue, and ActualCommitItemCellValue properties.

By default, CommitItemCellValue is set to OnEndEdit and any changes are committed to the underlying data source when a user completes editing in a cell, for example when clicking away from the cell or pressing the ENTER key. You can set CommitItemCellValue to Immediate if you want the data source to be updated after the user makes a change but before leaving edit mode.

For more information about data input is handled by Grid for WPF, see Inputting Data.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.