On Edit

DGV Framework Provides Fluent API callback methods on binding to enable you perform other operations e.g. Update changes on database.

The OnEdit() Event provides a callback which is invoked when a cell on the datagridview is edited.

The binded collection is Mutable, any edits in the datagridview will update the binded records in the collection.

   _dataGridView.OnEdit<User>( (user,cell) =>
          {
                MessageBox.Show(user.Name);
                return true; //return false to revert the edits
            });

Last updated

Was this helpful?