Posted 15 December 2021, 7:59 pm EST
Hi.
we are using componentOne WPF Edition (older version).
So we are trying to upgrade controls one by one.
We upgraded the Dlls of C1.WPF.FlexGrid.4 to C1.WPF.FlexGrid.4.5.2(latest) version.
After upgrading the Dlls we are having problems with C1FlexGrid in edit mode.
Scenario:
we are using bridge objects for Databinding with each of the grid cells. so there we capture CellEditEnding Event and cancel so that the bridge object doesn’t get replaced by the value which has been typed in the cell and upon hitting (enter key) we set the focus to the Cell Below.
// this keeps the cell from replacing the bridge object with the values that are typed in. Don’t remove it!!! //
this.CellEditEnding += (s, e) =>
{
e.Cancel = true;
};
this was working fine in the previous version but after upgrading to the latest FlexGrid this is not happening focus does goes to the cell below. it’s because
when we do e.cancel = true it seems that CreateCellContent is not called while in the previous version it was being called.
so if we do e.cancel = false then overidden createCellContent in our custom factory is called in the latest version but then the bridge Object is replaced by the value typed in the cell which breaks our code.
Please guide what can be the solution or are we missing something ?