DataGridColumn.PrepareCellForEdit(FrameworkElement, RoutedEventArgs) Método

Definición

Cuando se invalida en una clase derivada, establece el contenido de la celda según sea necesario para su edición.

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

Parámetros

editingElement
FrameworkElement

Elemento que la columna muestra para una celda en modo de edición.

editingEventArgs
RoutedEventArgs

Información sobre el gesto de usuario que hace que una celda entre en el modo de edición.

Devoluciones

Cuando devuelve una clase derivada, el valor de celda sin editar. Esta implementación devuelve null en todos los casos.

Comentarios

Los tipos de columna derivados invalidan este método para responder al gesto de usuario indicado por editingEventArgs y para devolver el valor actual antes de editarlo.

Se aplica a

Consulte también