DataGridColumn.PrepareCellForEdit(FrameworkElement, RoutedEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, sets cell content as needed for editing.
protected:
virtual System::Object ^ PrepareCellForEdit(System::Windows::FrameworkElement ^ editingElement, System::Windows::RoutedEventArgs ^ editingEventArgs);
protected virtual object PrepareCellForEdit (System.Windows.FrameworkElement editingElement, System.Windows.RoutedEventArgs editingEventArgs);
abstract member PrepareCellForEdit : System.Windows.FrameworkElement * System.Windows.RoutedEventArgs -> obj
override this.PrepareCellForEdit : System.Windows.FrameworkElement * System.Windows.RoutedEventArgs -> obj
Protected Overridable Function PrepareCellForEdit (editingElement As FrameworkElement, editingEventArgs As RoutedEventArgs) As Object
Parameters
- editingElement
- FrameworkElement
The element that the column displays for a cell in editing mode.
- editingEventArgs
- RoutedEventArgs
Information about the user gesture that is causing a cell to enter editing mode.
Returns
When returned by a derived class, the unedited cell value. This implementation returns null
in all cases.
Remarks
Derived column types override this method to respond to the user gesture that is indicated by editingEventArgs
and to return the current value before editing.
Applies to
See also
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per