Read-only DataGridView and IEditableObject

good evening

I have a little problem with my DataGridView in a .NET Windows Forms project. The grid is read-only and bound to a sortable BindingList<T>one that contains custom business objects. My business object class implements IEditableObject.

Now methods BeginEditand EndEditcalled all the time while navigating in a grid. Is there a way to prevent the use of a grid or snapping source? It is explicitly set as read-only (ReadOnly = true), so there is no reason (no, let me tell you carefully that I don’t see) to call these methods again and again.

Thanks for reading:)

Matthias

+3
source share
1 answer

, DataGridView /, IEditableObject , ...

, BindingList DataGridView.DataSource .

, EditMode DataGridView, IEditableObject.EndEdit() BusinessObjects.

, BUG ... .

. 100%, ... , - .

?

+2

Source: https://habr.com/ru/post/1699415/


All Articles