private bool inValidation = false;
private void OnCurrentCellValidating( object sender, CancelEventArgs e)
{
if(!inValidation)
{
inValidation = true;
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
this.gridDataBoundGrid1.BeginUpdate ();
this.gridDataBoundGrid1.CollapseAtRowIndex(cc.RowIndex);
inValidation = false;
}
}
>Any idea why the cascading updating rule causes a ListChangedType.ItemDeleted event when the parent row is expanded?
I do not know what you mean by cascading updating rule, but if the edit forces a record to move from one child table to another, then if has to be deleted from one before it can be added to another. Each child table has its own DataView associated with it and its own CurrencyManager.