Hey Steve - I've implemented this functionality in my grids and it did fix my problem, however, what I'm seeing now is complaints about editing from cell to cell. Essentially, when encapsulating the UpdateData inside the BeginInvokeOnMainThread, it causes the user to perform 4 clicks to move into editing a new cell. 2 Clicks on the new cell will take the old cell out of editing mode and 2 more clicks to get into editing of the new cell. Without the BeginInvokeOnMainThread, 2 clicks onto a new cell will automatically end editing and start editing the new cell.
Do you have any alternatives? Also, I use the UpdateData to always have a blank row at the bottom of the grid for new data entry which we've discussed in previous discussions and the BeginInvokeOnMainThread was prevent an exception when in EditMode and scrolling up in the grid.
Let me know what you think.
Attached is an old sample file that assists in explaining the issue.
Hi!
How about this:
if (!anotherCellEnteringEditMode) { this.BeginInvokeOnMainThread (() => { gridView.UpdateData (); }); }
What was happening, was that calling UpdateData was interrupting the call of putting the next cell into edit mode.
Luckily, we know when another cell is going into edit mode, via that additional parameter.
Would that work for you?
-SteveZ