Hi,
I've got multiple tabs on a tab control and each of those has an edtiable grid. I'm forcing a save on the underlining collections when the user moves to another tab.
However the user maybe in a cell that they have changed when they chose another tab, without moving to another cell or row in that grid and thereby not forcing the bound class to update it's value.
All I'm looking for is a quick way of making the grid update the bound property in the class whilst still retaining the focus/cell selection, when the user moves to another tab. Any thoughts?
Many thanks in advance.
Nathan
Hello,
You could handle an event like OnSelectedTabChanged, if you use UltraTabControl and write there following code lines:
ultraGrid1.PerformAction(UltraGridAction.ExitEditMode);
ultraGrid1.PerformAction(UltraGridAction.CommitRow);
First line will force the Cell to exit edit mode and second will commit the changes.
Let me know if you have any further questions.
Perfect.
That's exactly what I was after. Many thanks.