DataGridView.ProcessHomeKey(Keys) Méthode
Définition
Traite la touche Origine.Processes the HOME key.
protected:
bool ProcessHomeKey(System::Windows::Forms::Keys keyData);
protected bool ProcessHomeKey (System.Windows.Forms.Keys keyData);
member this.ProcessHomeKey : System.Windows.Forms.Keys -> bool
Protected Function ProcessHomeKey (keyData As Keys) As Boolean
Paramètres
- keyData
- Keys
Touche qui a été enfoncée.The key that was pressed.
Retours
true
si la touche a été traitée ; sinon, false
.true
if the key was processed; otherwise, false
.
Exceptions
La touche DÉBUT provoque l’entrée du contrôle en mode d’édition, mais la propriété EditType de la nouvelle cellule active n’indique pas une classe qui dérive de Control et implémente IDataGridViewEditingControl.The HOME key would cause the control to enter edit mode, but the EditType property of the new current cell does not indicate a class that derives from Control and implements IDataGridViewEditingControl.
Cette opération permet de valider une valeur de cellule ou d’activer le mode édition, mais une erreur dans la source de données bloque l’opération : soit il n’existe aucun gestionnaire pour l’événement DataError, soit le gestionnaire a défini la propriété ThrowException sur true
.This action would commit a cell value or enter edit mode, but an error in the data source prevents the action and either there is no handler for the DataError event or the handler has set the ThrowException property to true
.
Sécurité
SecurityPermission
pour appeler du code non managé.for calling unmanaged code. Valeur de la demande : LinkDemand.Demand value: LinkDemand. Valeur d’autorisation : UnmanagedCodePermission value: UnmanagedCode