Open veremenko-y opened 7 years ago
Thanks for reporting the issue!
I found more things related to this bug.
void grid_CellEdited(object sender, GridViewCellEventArgs e)
{
if (!Application.Instance.Platform.IsWpf)
{
if (e.Row < (grid.DataStore.Count() - 1))
{
grid.BeginEdit(e.Row + 1, e.Column); // stack overflow on MacOS
}
}
else
{
if (e.Row < (grid.DataStore.Count() - 1))
{
grid.SelectedRows = new List<int> { e.Row + 1 }; // stack overflow on Windows
}
}
}
For now, you could probably get around both issues by using Application.Instance.AsyncInvoke()
. I'm not sure if that will end up being the official solution to this problem until I get time to investigate this.
The code I posted is intentionally broken. I ended up using grid.BeginEdit(e.Row + 1, e.Column)
for Windows and grid.SelectedRows = new List<int> { e.Row + 1 };
form MacOS (with extra Enter to start editing). It fine for me now, but just to let you know that issue exists and a little strange.
Ok, good to know at least you have a workaround for now.
I have a grid and I've implemented the editing next row after the previous. It works on Windows with WPF backend.
But on a Mac it causes recursion and overflow.
Stack Trace