Eto GridView BeginCellEdit does not edit on very first try

Hi there,

I am working on a panel on with I have a button, which fires parts of the following code (where data is the grids DataStore).

if (view != null)
{
    data.Add(new BlockUserData());
    view.BeginEdit(view.DataStore.Count()-1, 1);
}

My idea was to add an empty item to the datatstore that I later will overwrite once the editing is finished.
It works fine, BUT the very first time I click the button the cell-editing is not started.
Once I retry it works fine.

What am I missing?

First try:
image
Every try after:
image

Thanks,
T.

Hi @tobias.stoltmann,

What does data inherit from?

My guess is you need to raise a property changed event on the collection so the grid view is notified of the change. Then you can start editing.

– Dale

Hi @dale,

data is an IObservableCollection of objects I created for the grid.
So then I will investigate how to deal with the property changed event and try this out!
Thanks for the help :slight_smile: