windowsforms-5891-controls-and-libraries-pivot-grid-data-shaping-editing-cell-editors-overview.md
Pivot Grid Control cells do not support data editing by default, and only display summary values calculated against data fields. You can customize cell text by formatting values or dynamically handling the PivotGridControl.CustomCellDisplayText event.
In specific instances, you may need to change the way cell contents are presented on-screen (for instance, use progress bars to display values). You may also want to allow an end-user to modify cell contents by embedding in-place editors.
Note
When an end-user edits a cell’s value, the changes are not automatically saved to the underlying data source. You need to save these changes manually by handling the PivotGridControl.EditValueChanged event. Otherwise, the changes are lost once the cell loses focus.
You can assign in-place editors to cells to:
Pivot Grid Control cells can embed editors from the XtraEditors Library (descendants of the BaseEdit class). These include: ButtonEdit, DateEdit, CalcEdit, ProgressBarControl, LookUpEdit, etc.
The image below shows a sample PivotGridControl with different editors assigned to data fields. The CalcEdit and ProgressBarControl controls are used for in-place editing within cells corresponding to the first and second data fields (Extended Price and Percent of Column).
Note
Third-party editors cannot be embedded into cells.
Follow the steps below to assign in-place editors to cells:
The editor binding methods can be used in various combinations. This means you can provide editors for a data field and then override editor assignments for the particular cells of this field.
See Preventing Editors from Being Activated to learn how to prevent end-users from activating editors.
When an end-user edits a cell’s value, the changes are not automatically saved to the underlying data source. You need to save these changes manually by handling the PivotGridControl.EditValueChanged event. Otherwise, the changes are lost once the cell loses focus.
See Also
Assigning Editors to Data Field's Cells
Preventing Editors from Being Activated
How to Assign Different In-Place Editors to Different Types of Cells