Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
IEditableObject.BeginEdit
posted

 Hello all,

For a xamDataGrid I have a DataSource that implements IEditableObject. I read in another post

that if I set UpdateMode = OnUpdate, than the grid will not call IEditableObject.EndEdit.

"Essentially OnUpdate is meant to prevent the DataGrid from calling IEditableObject.EndEdit on the data items that are modified until you explicitly do so via CommitChangesToAllRecords commands."

Can I prevent the DataGrid from calling IEditableObject.BeginEdit ? and how is possible?

 

Regards, Liviu 

 

 

  • 4850
    Offline posted

    Hi Liviu,

    The way to prevent BeginEdit from being called is to prevent editing by setting the AllowEdit property of FieldSettings to false. You can also cancel the EditModeStarting event to prevent editing of a cell.