Hi Stanley,
I''v replaced the console output line in your sample with this line:
Console.WriteLine(flag + ", IsInBeginEdit= " + this.gridControl1.CurrentCell.IsInBeginEdit.ToString());
If you now add rows you will see that IsInBeginEdit returns true after(!) BeginEdit has returned. But this is documented to return true only if the control flow is currently in begin edit. I forgot to tell you in my first post, that I use the grid in virtual grid mode in addition. Anyway, this behavior is already in the sample here.
Could you please check this?
Thanks!
Regards,
Christian
>Hi Christian,
>
>IsInBeginEdit is always true as you said, I will pass this to development team.
>
>>>The third time doing exactly the same BeginEdit returns false.
>To me BeginEdit works fine, refer
sample. Can you modify the sample to show the issue.
>
>>>Do you have any idea why BeginEdit could fail (the cell is always of the same type and neither readonly nor enabled or sth else is set which could prevent editing the cell)
>If you are using other controls in the form, GridControl has to be brought to focus. Try this
>this.gridControl1.Focus();
>
>
>Best regards,
>Stanley
>
>
>
>