Articles in this section
Category / Section

How to make use of Pivot EditingManager ability to prevent individual edits

It can be achieved by hooking up to the PivotValueEdited event. The following code snippet explains the same.
C#

void InternalGrid_QueryCellInfo(object sender, Syncfusion.Windows.Controls.Grid.GridQueryCellInfoEventArgs e)
{
if (!this.pivotGrid1.EnableValueEditing)
{
return;
}
pivotGrid1.InternalGrid.PrepareRenderCell += new Syncfusion.Windows.Controls.Grid.GridPrepareRenderCellEventHandler(InternalGrid_PrepareRenderCell);
}
void InternalGrid_PrepareRenderCell(object sender, Syncfusion.Windows.Controls.Grid.GridPrepareRenderCellEventArgs e)
{
if (e.Cell.RowIndex == 8 || e.Cell.RowIndex == 12 || e.Cell.ColumnIndex==3)
{
e.Style.ReadOnly = true;
}
}
 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied