Articles in this section
Category / Section

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

1 min read

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)
Please sign in to leave a comment
Access denied
Access denied