Dear,
We have Assign properties of GoObject (For Ex:Graph Node,Graph Link,GraphView) to Properties Grid.
Undo/Redo is active when change properties of Graph node and graph link
while change properties of Graph View Object then donot active Undo/Redo.
We have perform start transaction and Finshied transaction Cell Value
Changing event of Properties grid.
private void prtyGrid_CellValueChanging(object sender, DevExpress.XtraVerticalGrid.Events.CellValueChangedEventArgs e)
{
GraphView gView = this.GetLayout.GetView;
gView.StartTransaction();
for(int i=0; i<PropertyObjects.Length;i++)
{
if (PropertyObjects<em> is GraphNode)
((GraphNode)PropertyObjects<em>).PropertyChanged = e.Row.Properties.Caption;
else if (PropertyObjects<em> is GraphLink)
((GraphLink)PropertyObjects<em>).PropertyChanged = e.Row.Properties.Caption;
else if (PropertyObjects<em> is GraphView)
((GraphView)this.PropertyObjects<em>).PropertyChanged = e.Row.Properties.Caption;
}
gView.FinishTransaction("Prop Changed");
}
This Code Work Only Graph Node,GraphLink Object,not work for GraphView Object.
Regards
Sudhanshu