I am in the process of upgrading my users to the newest version of ArcGIS Pro 2.4.3 and testing my code. It appears that CancelEdit is not performing as expecting in the OnRowChangeEvent? It seems to work in OnRowDeleteEvent but not in OnRowChange?
<SPAN class="keyword token">else</SPAN> <SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>ConditionTrue<SPAN class="punctuation token">)</SPAN> <SPAN class="comment token">//rollback</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="comment token">//CANCEL the Redraw Change</SPAN>
args<SPAN class="punctuation token">.</SPAN><SPAN class="token function">CancelEdit</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> <SPAN class="token function">ChangeError</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Changes Not Allowed!"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Parent Shape Cannot be changed"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>I also put in simply args.CancelEdit() and that failed too