Edit

Bagikan melalui


DataGridColumn.PrepareCellForEdit(FrameworkElement, RoutedEventArgs) Method

Definition

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